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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Apr 19 08:01:49 EDT 2010


Author: verenadiewald
Date: 2010-04-19 08:01:48 -0400 (Mon, 19 Apr 2010)
New Revision: 5976

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
function prepareUploadField -> fill hidden upload field for updating

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-04-19 10:06:29 UTC (rev 5975)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-04-19 12:01:48 UTC (rev 5976)
@@ -2335,6 +2335,10 @@
 			"src='../img/button_digitize/geomRemove.png'/>" + 
 			formElementHtml;
 	}
+	patternString = "class\s*=\s*['\"]hiddenUploadField['\"]";
+	pattern = new RegExp(patternString);
+	replaceString = "class='hiddenUploadField' " + " value='"+elementValue+"'";
+	formElementHtml = formElementHtml.replace(pattern, replaceString);
 	
 	return formElementHtml;
 }



More information about the Mapbender_commits mailing list