← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 611: (GIS) New/edit map zoom boxes improved.

 

------------------------------------------------------------
revno: 611
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Sun 2009-09-06 20:31:51 +0700
message:
  (GIS) New/edit map zoom boxes improved.
modified:
  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/mapping/script/index.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/mapping/script/index.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/mapping/script/index.js	2009-09-06 13:05:20 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/mapping/script/index.js	2009-09-06 13:31:51 +0000
@@ -487,7 +487,7 @@
         id: 'newzoom_cb',
         editable: false,
         emptyText: 'Required',
-        displayField: 'value',
+        displayField: 'text',
         valueField: 'value',
         width: combo_width,
         minListWidth: combo_width + 26,
@@ -495,8 +495,8 @@
         mode: 'local',
         value: 7,
         store: new Ext.data.SimpleStore({
-            fields: ['value'],
-            data: [[5], [6], [7], [8], [9]]
+            fields: ['value','text'],
+            data: [[5, '5 (out)'], [6,'6'], [7,'7'], [8,'8'], [9,'9 (in)']]
         })
     });
     
@@ -510,10 +510,10 @@
         minListWidth: combo_width + 26,
         triggerAction: 'all',
         mode: 'local',
-        value: 5,
+        value: 7,
         store: new Ext.data.SimpleStore({
-            fields: ['value'],
-            data: [[5], [6], [7], [8], [9]]
+            fields: ['value','text'],
+            data: [[5, '5 (out)'], [6,'6'], [7,'7'], [8,'8'], [9,'9 (in)']]
         })
     });