← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 646: (GIS) Bounds text field value will change to the value that was submitted, ie. illegal values is ...

 

------------------------------------------------------------
revno: 646
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Wed 2009-09-09 12:56:20 +0700
message:
  (GIS) Bounds text field value will change to the value that was submitted, ie. illegal values is cut out. Rev 642 bug fixed.
modified:
  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/resources/mapfish/core/GeoStat.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/resources/mapfish/core/GeoStat.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/resources/mapfish/core/GeoStat.js	2009-09-08 21:29:17 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/resources/mapfish/core/GeoStat.js	2009-09-09 05:56:20 +0000
@@ -476,9 +476,13 @@
 						bounds[j-1] = bounds[j];
 					}
 					bounds.pop();
+					i--;
 				}
 			}
 			
+			var newInput = bounds.join(',');
+			Ext.getCmp('bounds').setValue(newInput);
+			
             for (var i = 0; i < bounds.length; i++)
             {
 				bounds[i] = parseFloat(bounds[i]);