diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js index 873b4f696..4c792c4de 100644 --- a/e107_web/js/core/all.jquery.js +++ b/e107_web/js/core/all.jquery.js @@ -597,6 +597,11 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; var form = $element.closest("form"); var data = form.serialize() || ''; + if($element.attr('data-disable') == 'true') + { + $element.addClass('disabled'); + } + $.ajax({ type: options.type || 'POST', url: options.url, @@ -612,6 +617,11 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; { $loadingImage.remove(); } + + if($element.attr('data-disable') == 'true') + { + $element.removeClass('disabled'); + } }, success: function (response) {