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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 28 11:08:30 EST 2007


Author: christoph
Date: 2007-11-28 11:08:30 -0500 (Wed, 28 Nov 2007)
New Revision: 1865

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
only display form element when a select box is described

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-11-28 15:59:17 UTC (rev 1864)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-11-28 16:08:30 UTC (rev 1865)
@@ -1174,8 +1174,10 @@
 						str += "\t\t\t\t<input id = 'datatype_" + elementName + "' name='datatype' type='hidden' value = '" + elementType + "'>\n";
 						str += "\t\t\t\t<input id = 'mandatory_" + elementName + "' name='mandatory' type='hidden' value = '" + isMandatory + "'>\n";
 						str += "\t\t\t\t<input id = '" + elementName + "' name='" + elementLabel + "' type='text' class = '"+featureTypeElement['f_style_id']+"' size=20 value = '" + elementValue + "'>\n";
-						}
-						else {
+					}
+					else {
+						if (formElementHtml.match(/<select/)) {
+								
 							while (formElementHtml.match(/\\/)) {
 								formElementHtml = formElementHtml.replace(/\\/, "");
 							} 
@@ -1188,7 +1190,8 @@
 							str += formElementHtml;
 	
 						}
-						str += "\t\t\t</td>\n\t\t</tr>\n";
+					}
+					str += "\t\t\t</td>\n\t\t</tr>\n";
 				}
 			}
 			else {



More information about the Mapbender_commits mailing list