debounds from buttons

This commit is contained in:
Oskar Hahn 2012-04-15 10:30:34 +02:00
parent 5f2c778880
commit 3222e75ab5
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
$(function () {
$('.button').click(function () {
button = $(this);
button.attr('disabled', 'disabled');
setTimeout(function () {
button.removeAttr('disabled');
}, 1000);
});
});

View File

@ -11,6 +11,7 @@
<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" />
<script type="text/javascript" src="{% static 'javascript/jquery.js' %}"></script>
<script type="text/javascript" src="{% static 'javascript/utils.js' %}"></script>
{% block header %}
{% endblock %}
</head>