prevent forms from being double-submitted

main
Philip Häusler 10 years ago
parent 40d83367bb
commit 30c8b48996

@ -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;
});
});

Loading…
Cancel
Save