mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX on chrome you can send multiple form if you click more than once on button
This commit is contained in:
parent
4997b5968f
commit
300438b290
|
|
@ -1978,6 +1978,21 @@ 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