Commit 76c76f5d by Damien Moulard

prevent hiccup in actions on frontend side

parent b5956647
......@@ -107,7 +107,13 @@ function showConfirmTransactionModal(div, form, montant, destinataire = null) {
// Bind modal validation button with form submition
$('#confirmTransactionModal #confirmTransactionButton').off()
$('#confirmTransactionModal #confirmTransactionButton').on('click', function(e){
// prevent hiccup
if ($(form).data('submitted') === true) {
e.preventDefault();
} else {
$(form).data('submitted', true);
form.submit()
}
});
}
......@@ -233,5 +239,4 @@ jQuery(document).ready(function() {
form.submit()
}
});
});
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -3,7 +3,7 @@
"app": {
"js": [
"/build/runtime.420770e4.js",
"/build/app.5bf64202.js"
"/build/app.3161e6c1.js"
],
"css": [
"/build/app.e9278f1f.css"
......
......@@ -2,7 +2,7 @@
"build/admin.css": "/build/admin.3589a647.css",
"build/admin.js": "/build/admin.21942bf0.js",
"build/app.css": "/build/app.e9278f1f.css",
"build/app.js": "/build/app.5bf64202.js",
"build/app.js": "/build/app.3161e6c1.js",
"build/runtime.js": "/build/runtime.420770e4.js",
"build/ckeditor/adapters/jquery.js": "/build/ckeditor/adapters/jquery.js",
"build/ckeditor/ckeditor.js": "/build/ckeditor/ckeditor.js",
......
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