FIX on chrome you can send multiple form if you click more than once on button

This commit is contained in:
atm-quentin 2019-02-08 15:57:08 +01:00
parent 4997b5968f
commit 300438b290

View File

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