We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f83723 + 8afc67f commit 240019cCopy full SHA for 240019c
themes/loop/scripts/form.js
@@ -2,10 +2,8 @@
2
$(function () {
3
// Disable all submit buttons on submit to prevent multiple
4
// submits.
5
- // Using the "submit" event on the form is too slow (late), so we
6
- // use the "click" event on the button itself.
7
- $('form [type="submit"]').on('click', function() {
8
- $(this).closest('form').find('[type="submit"]').prop('disabled', true);
+ $('form').on('submit', function() {
+ $(this).find('[type="submit"]').prop('disabled', true);
9
});
10
11
})(jQuery);
0 commit comments