#437 When using the "are you sure?" plugin... (#456)

... ensure the form immediately submits.
This commit is contained in:
Nathan 2016-04-29 08:22:28 +10:00 committed by Damian Mooyman
parent 9152844152
commit 60d7c47cda
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ jQuery(function ($) {
});
if (isValid) {
// When using the "are you sure?" plugin, ensure the form immediately submits.
$(form).removeClass('dirty');
form.submit();
} else {
userform.errorContainer.show();