diff --git a/themes/bootstrap/js/cart.js b/themes/bootstrap/js/cart.js index f5149c11b1d28ca06419378fa4f2cf991b06c0fb..dd21ac7d1154efa3866cd8d3fbdccb35e56a1ee9 100644 --- a/themes/bootstrap/js/cart.js +++ b/themes/bootstrap/js/cart.js @@ -171,7 +171,7 @@ function cartSubmit($form) { } document.location.href = url; } else if ((submit != 'empty' || confirm(vufindString['confirmEmpty'])) - && (submit != 'delete' || confirm(vufindString['confirmDelete']))) { + && (submit != 'delete' || confirm(vufindString['confirmDelete']))) { Lightbox.submit($form, Lightbox.changeContent); } else { $('#modal').find('.icon-spinner').remove(); diff --git a/themes/bootstrap/js/common.js b/themes/bootstrap/js/common.js index ac8c1ea646b347b475bbe5fb68c782e7671650e6..d8ed57c733466de64de2acd55e91f4ace55801c9 100644 --- a/themes/bootstrap/js/common.js +++ b/themes/bootstrap/js/common.js @@ -124,6 +124,8 @@ function registerLightboxEvents() { $(modal).find("form input[type=submit]").click(function() { // Abort requests triggered by the lightbox $('#modal .icon-spinner').remove(); + // Remove other clicks + $(modal).find('input[type="submit"][clicked=true]').attr('clicked', false); // Add useful information $(this).attr("clicked", "true"); // Add prettiness @@ -350,7 +352,6 @@ $(document).ready(function() { }, 500); // Delay request submission }, updater : function(item) { // Submit on update - // console.log(this.$element[0].form.submit); this.$element[0].value = item; this.$element[0].form.submit(); return item; diff --git a/themes/bootstrap3/js/cart.js b/themes/bootstrap3/js/cart.js index 0b53236b774de3faecfc0c44dc7a5155aefe25bf..3843c8c3213823261d8c80db925058f59b300f6a 100644 --- a/themes/bootstrap3/js/cart.js +++ b/themes/bootstrap3/js/cart.js @@ -171,7 +171,7 @@ function cartSubmit($form) { } document.location.href = url; } else if ((submit != 'empty' || confirm(vufindString['confirmEmpty'])) - && (submit != 'delete' || confirm(vufindString['confirmDelete']))) { + && (submit != 'delete' || confirm(vufindString['confirmDelete']))) { Lightbox.submit($form, Lightbox.changeContent); } else { $('#modal').find('.fa.fa-spinner').remove(); diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js index c21b5ec45b21638621e438b7ed4b7fedce3b8396..c155fea4cb44d543a294913124570a3514197344 100644 --- a/themes/bootstrap3/js/common.js +++ b/themes/bootstrap3/js/common.js @@ -126,6 +126,8 @@ function registerLightboxEvents() { $(modal).find("form input[type=submit]").click(function() { // Abort requests triggered by the lightbox $('#modal .fa-spinner').remove(); + // Remove other clicks + $(modal).find('input[type="submit"][clicked=true]').attr('clicked', false); // Add useful information $(this).attr("clicked", "true"); // Add prettiness