You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by pm...@apache.org on 2007/07/31 21:32:51 UTC
svn commit: r561455 -
/geronimo/server/trunk/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js
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++){