Permalink
Browse files

Form.Validator.test looks for 'ignoreValidation' in a field's class.

It was looking at the data-validators field, although ignoreField
adds 'ignoreValidation' to the field's class.
  • Loading branch information...
1 parent fc53a69 commit fe5c81a7832678edd960d4c1c5153957eb0a2b34 kiyoto committed May 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Forms/Form.Validator.js
@@ -243,7 +243,7 @@ Form.Validator = new Class({
var validator = this.getValidator(className);
if (warn != null) warn = false;
if (this.hasValidator(field, 'warnOnly')) warn = true;
- var isValid = this.hasValidator(field, 'ignoreValidation') || (validator ? validator.test(field) : true);
+ var isValid = field.hasClass('ignoreValidation') || (validator ? validator.test(field) : true);
if (validator && field.isVisible()) this.fireEvent('elementValidate', [isValid, field, className, warn]);
if (warn) return true;
return isValid;

0 comments on commit fe5c81a

Please sign in to comment.