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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Feb 23 08:10:04 EST 2010


Author: christoph
Date: 2010-02-23 08:10:03 -0500 (Tue, 23 Feb 2010)
New Revision: 5604

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
added two events

Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2010-02-23 12:55:34 UTC (rev 5603)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2010-02-23 13:10:03 UTC (rev 5604)
@@ -210,6 +210,11 @@
 var mapbenderInit = function () {
 	try {
 		parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection = new parent.Mapbender.Event();
+		parent.Mapbender.modules.gazetteerWFS.events = {};
+		var ev = parent.Mapbender.modules.gazetteerWFS.events;
+		ev.receiveFeatureCollection = parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection;
+		ev.onWfsConfSelect = new parent.Mapbender.Event();
+		ev.onFormReset = new parent.Mapbender.Event();
 		initModWfsGazetteer();	
 		init_wfsSpatialRequest();	
 	}
@@ -620,16 +625,19 @@
 	var wfsFormNode = document.getElementById("selectWfsConfForm");
 	if (parent.ie) {
 		selectNode.onchange = function() {
-		global_selectedWfsConfId = this.value;
-		initializeOnLoad = 0;
-     	if(typeof(resultGeometryPopup)!="undefined"){
-	 		resultGeometryPopup.destroy();
-	 	}
-	 	if(typeof(wfsPopup)!="undefined"){
-	 		wfsPopup.destroy();
-	 	}
-    	appendStyles();
-		appendWfsForm();
+			global_selectedWfsConfId = this.value;
+			initializeOnLoad = 0;
+	     	if(typeof(resultGeometryPopup)!="undefined"){
+		 		resultGeometryPopup.destroy();
+		 	}
+		 	if(typeof(wfsPopup)!="undefined"){
+		 		wfsPopup.destroy();
+		 	}
+	    	appendStyles();
+			appendWfsForm();
+			parent.Mapbender.modules.gazetteerWFS.onFormReset.trigger({
+				wfsConfId: global_selectedWfsConfId
+			});
 		};
 	}
 	else{
@@ -772,6 +780,9 @@
 }
 
 function clearFilter(){
+	parent.Mapbender.modules.gazetteerWFS.onFormReset.trigger({
+		wfsConfId: global_selectedWfsConfId
+	});
 	var wfsConfElementArray = global_wfsConfObj[global_selectedWfsConfId].element;
 	for (var i = 0; i < wfsConfElementArray.length; i++){
 		if (parseInt(wfsConfElementArray[i].f_search)) {



More information about the Mapbender_commits mailing list