← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 241: Delete legend set combobox bug fixed.

 

------------------------------------------------------------
revno: 241
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Thu 2009-04-23 21:35:51 +0200
message:
  Delete legend set combobox bug fixed.
modified:
  gis/dhis-web-mapping/src/main/webapp/demos/geostat/geostat.js

=== modified file 'gis/dhis-web-mapping/src/main/webapp/demos/geostat/geostat.js'
--- gis/dhis-web-mapping/src/main/webapp/demos/geostat/geostat.js	2009-04-23 14:13:02 +0000
+++ gis/dhis-web-mapping/src/main/webapp/demos/geostat/geostat.js	2009-04-23 19:35:51 +0000
@@ -73,6 +73,8 @@
 
     map.setCenter(new OpenLayers.LonLat(init_longitude, init_latitude), init_zoom); // config.js
     
+    // SHAPEFILE PANEL
+    
     var organisationUnitLevelStore = new Ext.data.JsonStore({
         url: path + 'getOrganisationUnitLevels' + type,
         baseParams: { format: 'json' },
@@ -624,6 +626,8 @@
         ]
     });
     
+    // LEGEND SET PANEL
+    
     var legendSetNameTextField = new Ext.form.TextField({
         id: 'legendsetname_tf',
         emptyText: 'Required',
@@ -709,7 +713,7 @@
     
     var legendSetStore = new Ext.data.JsonStore({
         url: path + 'getAllMapLegendSets' + type,
-        root: 'legendSets',
+        root: 'mapLegendSets',
         fields: ['id', 'name'],
         sortInfo: { field: 'name', direction: 'ASC' },
         autoLoad: true
@@ -763,8 +767,6 @@
                         minWidth: 400,
                         icon: Ext.MessageBox.INFO
                     });
-                    
-                    Ext.getCmp('legend_cb').getStore().reload();
                 },
                 failure: function()
                 {
@@ -779,7 +781,7 @@
         text: 'Delete legend set',
         handler: function()
         {
-            var ls = Ext.getCmp('deletelegendset_b').getValue();
+            var ls = Ext.getCmp('legendset_cb').getValue();
             
             if (!ls)
             {
@@ -803,8 +805,6 @@
                         minWidth: 400,
                         icon: Ext.MessageBox.INFO
                     });
-                    
-                    Ext.getCmp('legend_cb').getStore().reload();
                 },
                 failure: function()
                 {



--
Trunk
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.