OpenSlides/openslides/static/javascript/utils.js

14 lines
350 B
JavaScript
Raw Normal View History

2012-04-15 10:30:34 +02:00
$(function () {
2012-04-15 12:40:35 +02:00
$('.button').click(function (event) {
2012-04-15 10:30:34 +02:00
button = $(this);
2012-04-15 12:40:35 +02:00
if (button.hasClass('disabled')) {
event.preventDefault();
} else {
button.addClass('disabled');
setTimeout(function () {
button.removeClass('disabled');
}, 1000);
}
2012-04-15 10:30:34 +02:00
});
});