[Mapbender-commits] r7543 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Feb 8 04:36:24 EST 2011
Author: kmq
Date: 2011-02-08 01:36:24 -0800 (Tue, 08 Feb 2011)
New Revision: 7543
Modified:
trunk/mapbender/http/plugins/wfsConfTree.js
Log:
detect empty wfsConfIdString
Modified: trunk/mapbender/http/plugins/wfsConfTree.js
===================================================================
--- trunk/mapbender/http/plugins/wfsConfTree.js 2011-02-08 09:08:08 UTC (rev 7542)
+++ trunk/mapbender/http/plugins/wfsConfTree.js 2011-02-08 09:36:24 UTC (rev 7543)
@@ -153,21 +153,24 @@
};
- var req = Mapbender.Ajax.Request({
- url: "../php/mod_wfs_conf_server.php",
- method: "getWfsConfsFromId",
- parameters: {
- wfsConfIdString: wfsConfIdString
- },
- callback: function(result,success,message){
- reset(result);
- }
- });
- req.send();
+ if(wfsConfIdString){
+ var req = Mapbender.Ajax.Request({
+ url: "../php/mod_wfs_conf_server.php",
+ method: "getWfsConfsFromId",
+ parameters: {
+ wfsConfIdString: wfsConfIdString
+ },
+ callback: function(result,success,message){
+ reset(result);
+ }
+ });
+ req.send();
+ }
// addFeaturetypeConf should take precedence
$('#body').bind('addFeaturetypeConfs',function(evt,obj){
+ if(!obj.wfsConfIdString){ return; }
var req = Mapbender.Ajax.Request({
url: "../php/mod_wfs_conf_server.php",
method: "getWfsConfsFromId",
More information about the Mapbender_commits
mailing list