← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 236: Minor bugs fixed.

 

------------------------------------------------------------
revno: 236
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Thu 2009-04-23 16:13:02 +0200
message:
  Minor bugs 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 13:58:27 +0000
+++ gis/dhis-web-mapping/src/main/webapp/demos/geostat/geostat.js	2009-04-23 14:13:02 +0000
@@ -300,6 +300,8 @@
                     
                     Ext.getCmp('map_cb').getStore().reload();
                     Ext.getCmp('maps_cb').getStore().reload();
+                    Ext.getCmp('editmap_cb').getStore().reload();
+                    Ext.getCmp('deletemap_cb').getStore().reload();
                 },
                 failure: function()
                 {
@@ -327,7 +329,6 @@
                 Ext.MessageBox.alert('Error', 'Form is not complete');
                 return;
             }
-alert(en + '\n' + em + '\n' + uc + '\n' + nc + '\n' + lon  + '\n' + lat + '\n' + zoom);
            
             Ext.Ajax.request(
             {
@@ -349,6 +350,7 @@
                     Ext.getCmp('map_cb').getStore().reload();
                     Ext.getCmp('maps_cb').getStore().reload();
                     Ext.getCmp('editmap_cb').getStore().reload();
+                    Ext.getCmp('deletemap_cb').getStore().reload();
                 },
                 failure: function()
                 {
@@ -363,7 +365,7 @@
         text: 'Delete map',
         handler: function()
         {
-            var name = Ext.getCmp('deletemap_cb').getValue();
+            var mlp = Ext.getCmp('deletemap_cb').getValue();
             
             if (!mlp)
             {
@@ -381,7 +383,7 @@
                 {
                     Ext.Msg.show({
                         title:'Register shapefiles',
-                        msg: '<p style="padding-top:8px">The map <b>' + name + '</b> was successfully deleted!</b></p>',
+                        msg: '<p style="padding-top:8px">The map <b>' + mlp + '</b> was successfully deleted!</b></p>',
                         buttons: Ext.Msg.OK,
                         animEl: 'elId',
                         minWidth: 400,
@@ -390,6 +392,7 @@
                     
                     Ext.getCmp('map_cb').getStore().reload();
                     Ext.getCmp('maps_cb').getStore().reload();
+                    Ext.getCmp('editmap_cb').getStore().reload();
                     Ext.getCmp('deletemap_cb').getStore().reload();
                     
                 },



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