diff --git a/themes/loop/scripts/form.js b/themes/loop/scripts/form.js index 0ea62224..35311634 100644 --- a/themes/loop/scripts/form.js +++ b/themes/loop/scripts/form.js @@ -2,10 +2,8 @@ $(function () { // Disable all submit buttons on submit to prevent multiple // submits. - // Using the "submit" event on the form is too slow (late), so we - // use the "click" event on the button itself. - $('form [type="submit"]').on('click', function() { - $(this).closest('form').find('[type="submit"]').prop('disabled', true); + $('form').on('submit', function() { + $(this).find('[type="submit"]').prop('disabled', true); }); }); })(jQuery);