Skip to content

Loading…

Update core.js #1009

Closed
wants to merge 1 commit into from

2 participants

@ghidinic

Unbind invalid-form.validate

@ghidinic ghidinic Update core.js
Unbind invalid-form.validate
4d73ba0
@jzaefferer jzaefferer closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 7, 2014
  1. @ghidinic

    Update core.js

    ghidinic committed
    Unbind invalid-form.validate
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core.js
View
2 src/core.js
@@ -360,6 +360,8 @@ $.extend($.validator, {
if ( this.settings.invalidHandler ) {
$(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler);
+ } else {
+ $(this.currentForm).unbind("invalid-form.validate");
}
// Add aria-required to any Static/Data/Class required fields before first validation
Something went wrong with that request. Please try again.