commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateMinLength.js
Date Wed, 25 Jun 2003 02:11:41 GMT
dgraham     2003/06/24 19:11:41

  Modified:    validator/src/javascript/org/apache/commons/validator/javascript
                        validateMinLength.js
  Log:
  Copy minlength change over from Struts.  Now minlength passes if all whitespace is entered.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js
  
  Index: validateMinLength.js
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateMinLength.js	18 May 2003 21:35:37 -0000	1.1
  +++ validateMinLength.js	25 Jun 2003 02:11:41 -0000	1.2
  @@ -12,7 +12,7 @@
                   field.type == 'textarea') {
   
                   var iMin = parseInt(oMinLength[x][2]("minlength"));
  -                if ((field.value.length > 0) && (field.value.length < iMin))
{
  +                if ((trim(field.value).length > 0) && (field.value.length <
iMin)) {
                       if (i == 0) {
                           focusField = field;
                       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message