Commit 21c4706b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

xhtml_style: disable installDoubleSubmitDialogPrevention in formwizard case.

parent b64c770c
No related merge requests found
......@@ -359,13 +359,14 @@ function installDoubleSubmitDialogPrevention(confirmation_message) {
/* Install an handler to prevent submitting a dialog twice. */
$(document).ready( function() {
$(".dialog_submit_button").on("click", function(e){
$(this).on("click.confirm", function(event) {
$(this).off(".confirm");
if (! confirm(confirmation_message) ) {
event.preventDefault();
}
});
if ($(this).val() != "Next") {
$(this).on("click.confirm", function(event) {
$(this).off(".confirm");
if (! confirm(confirmation_message) ) {
event.preventDefault();
}
});
}
});
});
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment