[Mapbender-commits] r7521 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 3 04:20:21 EST 2011


Author: kmq
Date: 2011-02-03 01:20:21 -0800 (Thu, 03 Feb 2011)
New Revision: 7521

Modified:
   trunk/mapbender/http/plugins/wfsConfTree.js
Log:
look for Mapbender in the righ tplace in the DOM

Modified: trunk/mapbender/http/plugins/wfsConfTree.js
===================================================================
--- trunk/mapbender/http/plugins/wfsConfTree.js	2011-02-03 08:57:06 UTC (rev 7520)
+++ trunk/mapbender/http/plugins/wfsConfTree.js	2011-02-03 09:20:21 UTC (rev 7521)
@@ -17,8 +17,8 @@
 	var currentWFSConf = {};
 
 
-	if(parent.Mapbender.modules.loadwmc){
-		parent.Mapbender.modules.loadwmc.events.loaded.register(function (obj) {
+	if(Mapbender.modules.loadwmc){
+		Mapbender.modules.loadwmc.events.loaded.register(function (obj) {
 			if (obj.extensionData && obj.extensionData.WFSCONFIDSTRING) {
 				var req = Mapbender.Ajax.Request({
 					url: 	"../php/mod_wfs_conf_server.php",
@@ -143,9 +143,9 @@
 					
 			});
 		}
-		if(parent.Mapbender.modules.savewmc){
-			parent.Mapbender.modules.savewmc.setExtensionData({ WFSCONFIDSTRING: wfsconfs.join(',') });
-			parent.Mapbender.modules.savewmc.save({session: true});
+		if(Mapbender.modules.savewmc){
+			Mapbender.modules.savewmc.setExtensionData({ WFSCONFIDSTRING: wfsconfs.join(',') });
+			Mapbender.modules.savewmc.save({session: true});
 		}
 	
 		// need this so we have a reference to the currently active wfsConfs



More information about the Mapbender_commits mailing list