[Mapbender-commits] r6250 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jun 8 11:20:57 EDT 2010
Author: kmq
Date: 2010-06-08 11:20:55 -0400 (Tue, 08 Jun 2010)
New Revision: 6250
Modified:
trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
fix ticket #368
Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2010-06-08 14:44:20 UTC (rev 6249)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2010-06-08 15:20:55 UTC (rev 6250)
@@ -1287,7 +1287,11 @@
}
}
try {
- var geoObj = parent.$.parseJSON(jsCode);
+ if(typeof(jsCode) == 'object'){
+ var geoObj = jsCode;
+ }else{
+ var geoObj = parent.$.parseJSON(jsCode);
+ }
}
catch (exc) {
document.getElementById("res").innerHTML = '';
More information about the Mapbender_commits
mailing list