[Mapbender-commits] r3938 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue May 12 15:30:28 EDT 2009
Author: marc
Date: 2009-05-12 15:30:27 -0400 (Tue, 12 May 2009)
New Revision: 3938
Modified:
branches/2.6/http/javascripts/mod_digitize_tab.php
Log:
HTML input bug http://trac.osgeo.org/mapbender/ticket/465
Modified: branches/2.6/http/javascripts/mod_digitize_tab.php
===================================================================
--- branches/2.6/http/javascripts/mod_digitize_tab.php 2009-05-11 22:31:45 UTC (rev 3937)
+++ branches/2.6/http/javascripts/mod_digitize_tab.php 2009-05-12 19:30:27 UTC (rev 3938)
@@ -1644,7 +1644,7 @@
}
}
var formElementHtml = featureTypeElement['f_form_element_html'];
- if (!formElementHtml || !formElementHtml.match(/<select/)) {
+ if (!formElementHtml || !formElementHtml.match(/<select/)) {
str += "\t\t\t\t<input id = 'datatype_mb_digitize_form_" + elementName + "' name='datatype' type='hidden' value = '" + elementType + "'>\n";
str += "\t\t\t\t<input id = 'mandatory_mb_digitize_form_" + elementName + "' name='mandatory' type='hidden' value = '" + isMandatory + "'>\n";
str += "\t\t\t\t<input id = 'mb_digitize_form_" + elementName + "' name='" + elementLabel + "' type='text' class = '"+featureTypeElement['f_style_id']+"' size=20 value = '" + elementValue + "'>\n";
@@ -1660,6 +1660,10 @@
var pattern = new RegExp(patternString);
var patternStringForReplace = "option value = '"+elementValue+"'";
formElementHtml = formElementHtml.replace(pattern, patternStringForReplace+" selected");
+ formElementHtml = formElementHtml.replace(/</g,'<');
+ formElementHtml = formElementHtml.replace(/>/g,'>');
+ formElementHtml = formElementHtml.replace(/'/g,'\'');
+
str += formElementHtml;
}
str += "\t\t\t</td>\n\t\t</tr>\n";
More information about the Mapbender_commits
mailing list