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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 19 08:12:43 EDT 2009


Author: verenadiewald
Date: 2009-06-19 08:12:43 -0400 (Fri, 19 Jun 2009)
New Revision: 4048

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
correct replacement of select box option values

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-06-19 03:56:26 UTC (rev 4047)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-06-19 12:12:43 UTC (rev 4048)
@@ -1704,10 +1704,10 @@
 	}
 	
 	// preselect the correct entry of the box
-	patternString = "option value='"+elementValue+"'";
+	patternString = "option( )+value( )*=( )*'"+elementValue+"'";
 	pattern = new RegExp(patternString);
-	formElementHtml = formElementHtml.replace(pattern, patternString+" selected");
-
+	var patternStringForReplace = "option value = '"+elementValue+"'";
+	formElementHtml = formElementHtml.replace(pattern, patternStringForReplace+" selected");
 	return formElementHtml;
 }
 



More information about the Mapbender_commits mailing list