prevent forms from being double-submitted
This commit is contained in:
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…
Reference in New Issue