[Mapbender-commits] r5065 - branches/2.6/http/javascripts

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


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

Modified:
   branches/2.6/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: branches/2.6/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- branches/2.6/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-03 10:23:11 UTC (rev 5064)
+++ branches/2.6/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-03 10:23:52 UTC (rev 5065)
@@ -321,6 +321,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