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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Dec 3 05:23:12 EST 2009


Author: verenadiewald
Date: 2009-12-03 05:23:11 -0500 (Thu, 03 Dec 2009)
New Revision: 5064

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
remove all style tags from former wfs confs in function appendStyles before adding new style tag

Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-03 09:12:54 UTC (rev 5063)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-03 10:23:11 UTC (rev 5064)
@@ -415,6 +415,12 @@
 }
 
 function appendStyles() {
+	//first of all remove all style tags from former wfs confs 
+	var styleNodes = document.getElementsByTagName("style");
+	for (var i=0; i < styleNodes.length; i++) {
+		var parentNodeOfStyle = styleNodes[i].parentNode;
+		parentNodeOfStyle.removeChild(styleNodes[i]);	
+	}
 	var styleObj;
 	var rule = global_wfsConfObj[global_selectedWfsConfId].g_style + global_wfsConfObj[global_selectedWfsConfId].g_res_style;
 	if (parent.ie) {



More information about the Mapbender_commits mailing list