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

xhtml_style: disable installDoubleSubmitDialogPrevention in formwizard case.

parent b64c770c
...@@ -359,13 +359,14 @@ function installDoubleSubmitDialogPrevention(confirmation_message) { ...@@ -359,13 +359,14 @@ function installDoubleSubmitDialogPrevention(confirmation_message) {
/* Install an handler to prevent submitting a dialog twice. */ /* Install an handler to prevent submitting a dialog twice. */
$(document).ready( function() { $(document).ready( function() {
$(".dialog_submit_button").on("click", function(e){ $(".dialog_submit_button").on("click", function(e){
if ($(this).val() != "Next") {
$(this).on("click.confirm", function(event) { $(this).on("click.confirm", function(event) {
$(this).off(".confirm"); $(this).off(".confirm");
if (! confirm(confirmation_message) ) { if (! confirm(confirmation_message) ) {
event.preventDefault(); 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