From bcce574e793fe5fd630f0c43316b935cb408bbcb Mon Sep 17 00:00:00 2001 From: Serios Date: Fri, 20 Apr 2018 09:45:03 +0300 Subject: [PATCH] Truly disable a button on FormSubmit We need to add attribute disabled to the button to truly disable it, otherwise the click event is fired up again and again causing form submissions --- e107_web/js/core/all.jquery.js | 1 + 1 file changed, 1 insertion(+) diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js index 18f587ed5..03c92a177 100644 --- a/e107_web/js/core/all.jquery.js +++ b/e107_web/js/core/all.jquery.js @@ -373,6 +373,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; if($button.attr('data-disable') == 'true') { $button.addClass('disabled'); + $button.prop("disabled", true); } });