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:
Laurent Destailleur 2019-02-12 13:42:37 +01:00 committed by GitHub
commit 74f468dc91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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