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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 8 09:41:11 EDT 2010


Author: kmq
Date: 2010-06-08 09:41:11 -0400 (Tue, 08 Jun 2010)
New Revision: 6247

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_client.html
Log:
fix for ticket #639

Modified: trunk/mapbender/http/javascripts/mod_wfs_client.html
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_client.html	2010-06-08 13:37:05 UTC (rev 6246)
+++ trunk/mapbender/http/javascripts/mod_wfs_client.html	2010-06-08 13:41:11 UTC (rev 6247)
@@ -201,7 +201,7 @@
 	var obj2json = parent.$.toJSON(obj);
 	parent.$.post("../php/mod_wfs_server.php",{"obj":obj2json}, function (json,status){
 		if(status == 'success'){
-			var dsJson = eval('(' + json + ')');
+			var dsJson = typeof(json) == 'object' ? json : eval('(' + json + ')');
 			switch(obj['action']){
 				case "getServices":
 					appendServices(dsJson);
@@ -453,4 +453,4 @@
 </form>
 
 </body>
-</html>
\ No newline at end of file
+</html>



More information about the Mapbender_commits mailing list