Bug 24786: (QA follow-up) Reset beenSubmitted on validation failure
When the form submision fails due to validation errors we need to also reset the preventFormDoubleSubmit state to allow for a second submission with corrected form fields. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
f7030fc0e1
commit
47731f187f
|
|
@ -389,6 +389,12 @@
|
|||
}
|
||||
}
|
||||
[% END %]
|
||||
},
|
||||
invalidHandler: function(event, validator) {
|
||||
// reset beenSubmitted for prevenDoubleFormSubmit
|
||||
event.target.beenSubmitted = false;
|
||||
// remove class added by preventDoubleFormSubmit
|
||||
$("body, form input[type='submit'], form button[type='submit'], form a").removeClass('waiting');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue