diff --git a/openslides/static/javascript/utils.js b/openslides/static/javascript/utils.js index 30716a5ce..7dd13317b 100644 --- a/openslides/static/javascript/utils.js +++ b/openslides/static/javascript/utils.js @@ -1,9 +1,13 @@ $(function () { - $('.button').click(function () { + $('.button').click(function (event) { button = $(this); - button.attr('disabled', 'disabled'); - setTimeout(function () { - button.removeAttr('disabled'); - }, 1000); + if (button.hasClass('disabled')) { + event.preventDefault(); + } else { + button.addClass('disabled'); + setTimeout(function () { + button.removeClass('disabled'); + }, 1000); + } }); });