mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
... ensure the form immediately submits.
This commit is contained in:
parent
9152844152
commit
60d7c47cda
@ -117,6 +117,10 @@ jQuery(function ($) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
|
|
||||||
|
// When using the "are you sure?" plugin, ensure the form immediately submits.
|
||||||
|
$(form).removeClass('dirty');
|
||||||
|
|
||||||
form.submit();
|
form.submit();
|
||||||
} else {
|
} else {
|
||||||
userform.errorContainer.show();
|
userform.errorContainer.show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user