geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmcma...@apache.org
Subject svn commit: r561455 - /geronimo/server/trunk/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js
Date Tue, 31 Jul 2007 19:32:51 GMT
Author: pmcmahan
Date: Tue Jul 31 12:32:50 2007
New Revision: 561455

URL: http://svn.apache.org/viewvc?view=rev&rev=561455
Log:
GERONIMO-3350 allow negative values for connector attributes (e.g. -1)

Modified:
    geronimo/server/trunk/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js

Modified: geronimo/server/trunk/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js?view=diff&rev=561455&r1=561454&r2=561455
==============================================================================
--- geronimo/server/trunk/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js
(original)
+++ geronimo/server/trunk/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js
Tue Jul 31 12:32:50 2007
@@ -44,6 +44,10 @@
 }
 
 function isIntegral(value){
+    // trim off the negative sign if present
+    if(value.length>1 && value.charAt(0) == "-") {
+        value = value.substring(1);
+    }
     if(value.length < 1) return false;
     var ints = "1234567890";
     for(i = 0; i < value.length; i++){



Mime
View raw message