struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhol...@apache.org
Subject cvs commit: jakarta-struts/conf/share validator-rules.xml
Date Tue, 16 Jul 2002 02:37:56 GMT
jholmes     2002/07/15 19:37:56

  Modified:    conf/share validator-rules.xml
  Log:
  updated remaining !iValue references to be isNaN(iValue)
  
  PR: Bugzilla #7351, #8446
  
  Revision  Changes    Path
  1.8       +4 -4      jakarta-struts/conf/share/validator-rules.xml
  
  Index: validator-rules.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/conf/share/validator-rules.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- validator-rules.xml	16 Jul 2002 02:21:41 -0000	1.7
  +++ validator-rules.xml	16 Jul 2002 02:37:55 -0000	1.8
  @@ -243,7 +243,7 @@
                            form[oByte[x][0]].type == 'radio') &&
                           (form[oByte[x][0]].value.length > 0)) {
                           var iValue = parseInt(form[oByte[x][0]].value);
  -                        if (!iValue || !(iValue >= -128 && iValue <= 127))
{
  +                        if (isNaN(iValue) || !(iValue >= -128 && iValue <=
127)) {
                               if (i == 0)
                                   focusField = form[oByte[x][0]];
                               fields[i++] = oByte[x][1];
  @@ -288,7 +288,7 @@
                            form[oShort[x][0]].type == 'radio') &&
                           (form[oShort[x][0]].value.length > 0)) {
                           var iValue = parseInt(form[oShort[x][0]].value);
  -                        if (!iValue || !(iValue >= -32768 && iValue <= 32767))
{
  +                        if (isNaN(iValue) || !(iValue >= -32768 && iValue <=
32767)) {
                               if (i == 0) {
                                   focusField = form[oShort[x][0]];
                               }
  @@ -334,7 +334,7 @@
                            form[oInteger[x][0]].type == 'radio') &&
                           (form[oInteger[x][0]].value.length > 0)) {
                           var iValue = parseInt(form[oInteger[x][0]].value);
  -                        if (!iValue || !(iValue >= -2147483648 && iValue <=
2147483647)) {
  +                        if (isNaN(iValue) || !(iValue >= -2147483648 && iValue
<= 2147483647)) {
                               if (i == 0) {
                                   focusField = form[oInteger[x][0]];
                               }
  @@ -392,7 +392,7 @@
                            form[oFloat[x][0]].type == 'radio') &&
                           (form[oFloat[x][0]].value.length > 0)) {
                           var iValue = parseFloat(form[oFloat[x][0]].value);
  -                        if ( isNaN(iValue) ) {
  +                        if (isNaN(iValue)) {
                               if (i == 0) {
                                   focusField = form[oFloat[x][0]];
                               }
  
  
  

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message