Skip to content

Commit

Permalink
'checkedInput' event added
Browse files Browse the repository at this point in the history
  • Loading branch information
3n committed Oct 20, 2011
1 parent 0d9a3aa commit 17bf2ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ ValidateSimple Method: constructor
* touched - When form has been edited.
* valid - When form is valid.
* invalid - When form is invalid.
* checkedInput - Fires after validation, whether pass or fail. Arguments: input element and this.
* invalidSubmit - (Only when validateOnSubmit is true) When form is submitted and invalid.
Arguments: this instance and the submit event.
* validSubmit - (Only when validateOnSubmit is true) When form is submitted and valid.
Expand Down
2 changes: 2 additions & 0 deletions Source/ValidateSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ var ValidateSimple = new Class({
input.store('validate-simple-errors', null);
this.alertInputValidity(input);
}

this.fireEvent('checkedInput', [input, this]);

this.checkValid();
return this;
Expand Down

0 comments on commit 17bf2ae

Please sign in to comment.