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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 8 02:50:04 EST 2009


Author: armin11
Date: 2009-12-08 02:49:59 -0500 (Tue, 08 Dec 2009)
New Revision: 5077

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
better reg_expr for integer values

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-12-07 10:46:56 UTC (rev 5076)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-12-08 07:49:59 UTC (rev 5077)
@@ -1588,7 +1588,7 @@
 }
 
 function isInteger(str) {
-	if (str.match(/^\d*$/)) {
+	if (str.match(/^[0-9]{0,8}$/) || str == "" ) { //will be better ;-)
 		return true;
 	}
 	return false;
@@ -2225,7 +2225,8 @@
 						d.get(m).e.setElement('fid', fid);
 					}
 				}
-				else if (myform.elements[i].type == 'text' ){
+				//else if (myform.elements[i].type == 'text' { //merging geoportal.rlp
+				else if (myform.elements[i].type == 'text'  || myform.elements[i].tagName.toUpperCase() == "TEXTAREA"){
 					if (myform.elements[i].id) {
 						var elementId = String(myform.elements[i].id).replace(/mb_digitize_form_/, "");
 						d.get(m).e.setElement(elementId, myform.elements[i].value);



More information about the Mapbender_commits mailing list