[Mapbender-commits] r6972 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 29 10:29:03 EDT 2010


Author: christoph
Date: 2010-09-29 14:29:02 +0000 (Wed, 29 Sep 2010)
New Revision: 6972

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
no eval needed with jquery 1.4.2

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-09-29 14:28:44 UTC (rev 6971)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-09-29 14:29:02 UTC (rev 6972)
@@ -1332,7 +1332,7 @@
 			}
 			
 			parent.mb_ajax_post("../php/mod_digitize_mergePolygon.php", {polygons: polygonTextArray.join(";")}, function(json, status) {
-				var response = eval('(' + json + ')');
+				var response = json;
 				var polygon = response.polygon;
 				var mapIndex = parent.getMapObjIndexByName(mod_digitize_target);
 				d.importGeometryFromText(polygon, parent.mb_mapObj[mapIndex].epsg);
@@ -1358,7 +1358,7 @@
 			}
 			
 			var splitCallback = function (json, status) {
-				var response = eval('(' + json + ')');
+				var response = json;
 				var resultArray = response.geometries;
 				var wfsConfId = d.get(0).wfs_conf;
 				var mapIndex = parent.getMapObjIndexByName(mod_digitize_target);
@@ -1416,7 +1416,7 @@
 			var polygon2Text = d.get(1).toText();
 			
 			parent.mb_ajax_post("../php/mod_digitize_differencePolygon.php", {polygon1: polygon1Text, polygon2: polygon2Text}, function(json, status) {
-				var response = eval('(' + json + ')');
+				var response = json;
 				var polygonArray = response.polygons;
 				var wfsConfId = d.get(0).wfs_conf;
 				var wfsProperties = d.get(0).e;
@@ -1464,7 +1464,7 @@
 			var line2Text = d.get(1).toText();
 				
 			parent.mb_ajax_post("../php/mod_digitize_mergeLines.php", {line1: line1Text, line2: line2Text}, function(json, status) {
-				var response = eval('(' + json + ')');
+				var response = json;
 				var line = response.line;
 				if(line == "") {
 					alert(msgObj.errorMessageInvalidLineGeometries);



More information about the Mapbender_commits mailing list