Merge pull request #10535 from atm-quentin/FIX_multiple_sending_form
FIX on chrome you can send multiple form if you click more than once …
This commit is contained in:
commit
74f468dc91
@ -2123,5 +2123,20 @@ if (! function_exists("llxFooter"))
|
||||
|
||||
print "</body>\n";
|
||||
print "</html>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
//Prevent from multiple form sending
|
||||
$(function() {
|
||||
$('input[type=submit]').click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).prop('disabled', true);
|
||||
$(this).closest('form').submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user