debounds from buttons
This commit is contained in:
parent
5f2c778880
commit
3222e75ab5
9
openslides/static/javascript/utils.js
Normal file
9
openslides/static/javascript/utils.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
$(function () {
|
||||||
|
$('.button').click(function () {
|
||||||
|
button = $(this);
|
||||||
|
button.attr('disabled', 'disabled');
|
||||||
|
setTimeout(function () {
|
||||||
|
button.removeAttr('disabled');
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
});
|
@ -11,6 +11,7 @@
|
|||||||
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/base.css' %}" />
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/base.css' %}" />
|
||||||
<link rel="shortcut icon" href="{% static 'images/favicon.png' %}" type="image/png" />
|
<link rel="shortcut icon" href="{% static 'images/favicon.png' %}" type="image/png" />
|
||||||
<script type="text/javascript" src="{% static 'javascript/jquery.js' %}"></script>
|
<script type="text/javascript" src="{% static 'javascript/jquery.js' %}"></script>
|
||||||
|
<script type="text/javascript" src="{% static 'javascript/utils.js' %}"></script>
|
||||||
{% block header %}
|
{% block header %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user