prevent forms from being double-submitted

This commit is contained in:
Philip Häusler 2014-12-06 21:39:59 +01:00
parent 40d83367bb
commit 30c8b48996
1 changed files with 11 additions and 4 deletions

View File

@ -15,3 +15,10 @@ function uncheck_all(id) {
boxes[i].checked = false;
}
}
$(function() {
$('form').submit(function(ev) {
$('input[type="submit"]').prop("readonly", true).addClass("disabled");
return true;
});
});