← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 735: (GIS) Add new map and edit map bugs related to the new combo boxes fixed.

 

------------------------------------------------------------
revno: 735
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Wed 2009-09-16 12:36:23 +0200
message:
  (GIS) Add new map and edit map bugs related to the new combo boxes fixed.
modified:
  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/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/dhis-web-mapping/mapping/script/index.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js	2009-09-16 10:18:20 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js	2009-09-16 10:36:23 +0000
@@ -578,8 +578,8 @@
                     var mlp = Ext.getCmp('maplayerpath_cb').getValue();
                     var t = Ext.getCmp('type_cb').getValue();
                     var nc = Ext.getCmp('newnamecolumn_tf').getValue();
-                    var lon = Ext.getCmp('newlongitude_cb').getValue();
-                    var lat = Ext.getCmp('newlatitude_cb').getValue();
+                    var lon = Ext.getCmp('newlongitude_cb').getRawValue();
+                    var lat = Ext.getCmp('newlatitude_cb').getRawValue();
                     var zoom = Ext.getCmp('newzoom_cb').getValue();
                      
                     if (!nn || !mlp || !oui || !ouli || !nc || !lon || !lat) {
@@ -675,11 +675,11 @@
             var en = Ext.getCmp('editname_tf').getValue();
             var em = Ext.getCmp('editmap_cb').getValue();
             var nc = Ext.getCmp('editnamecolumn_tf').getValue();
-            var lon = Ext.getCmp('editlongitude_cb').getValue();
-            var lat = Ext.getCmp('editlatitude_cb').getValue();
+            var lon = Ext.getCmp('editlongitude_cb').getRawValue();
+            var lat = Ext.getCmp('editlatitude_cb').getRawValue();
             var zoom = Ext.getCmp('editzoom_cb').getValue();
 			var t = Ext.getCmp('type_cb').getValue();
-            
+			
             if (!en || !em || !nc || !lon || !lat) {
                 Ext.messageRed.msg('New map', 'Form is not complete.');
                 return;
@@ -693,7 +693,7 @@
             Ext.Ajax.request({
                 url: path + 'addOrUpdateMap' + type,
                 method: 'GET',
-                params: { name: en, mapLayerPath: em, type: t, nameColumn: nc, longitude: lon, latitude: lat, zoom: zoom },
+                params: { name: en, mapLayerPath: em, nameColumn: nc, longitude: lon, latitude: lat, zoom: zoom },
 
                 success: function( responseObject ) {
                     Ext.messageBlack.msg('Edit map', 'The map ' + msg_highlight_start + en + msg_highlight_end + ' was updated.');