Skip to content

Commit

Permalink
Core: register validateDelegate also for checkables on focusin, focus…
Browse files Browse the repository at this point in the history
…out and keyup. fixes jquery-validation#1062.
  • Loading branch information
staabm committed Apr 1, 2014
1 parent 4a3c23d commit 6458317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ $.extend($.validator, {
"[type='number'], [type='search'] ,[type='tel'], [type='url'], " +
"[type='email'], [type='datetime'], [type='date'], [type='month'], " +
"[type='week'], [type='time'], [type='datetime-local'], " +
"[type='range'], [type='color'] ",
"[type='range'], [type='color'], [type='radio'], [type='checkbox']",
"focusin focusout keyup", delegate)
.validateDelegate("[type='radio'], [type='checkbox'], select, option", "click", delegate);
.validateDelegate("option", "click", delegate);

if ( this.settings.invalidHandler ) {
$(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler);
Expand Down

0 comments on commit 6458317

Please sign in to comment.