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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Nov 30 06:40:24 EST 2010


Author: verenadiewald
Date: 2010-11-30 03:40:24 -0800 (Tue, 30 Nov 2010)
New Revision: 7168

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
moved gazetteerReady.trigger() to appendWfsForm

Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2010-11-26 10:53:13 UTC (rev 7167)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2010-11-30 11:40:24 UTC (rev 7168)
@@ -268,7 +268,9 @@
 var mapbenderInit = function () {
 	try {
 		parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection = new parent.Mapbender.Event();
-		parent.Mapbender.modules.gazetteerWFS.events = {};
+		parent.Mapbender.modules.gazetteerWFS.events = {
+			gazetteerReady: new parent.Mapbender.Event()
+		};
 		var ev = parent.Mapbender.modules.gazetteerWFS.events;
 		ev.receiveFeatureCollection = parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection;
 
@@ -335,8 +337,6 @@
 	}
 	catch (exc) {
 	}
-
-	parent.Mapbender.events.gazetteerReady.trigger();
 };
 
 if (parent.Mapbender.events.init.done === true) {
@@ -872,6 +872,12 @@
 	if(initializeOnLoad == 1) {
 		return validate();
 	}
+
+	var ready = parent.Mapbender.modules[frameName].events.gazetteerReady; 
+	if(ready.done !== true) {
+		ready.done = true;
+		ready.trigger();
+	}
 }
 
 function checkSrs(){



More information about the Mapbender_commits mailing list