mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Disable button form on submit.
This commit is contained in:
@@ -15,6 +15,11 @@ $(function () {
|
||||
|
||||
configAccounting(currencySymbol);
|
||||
|
||||
// on submit of form, disable any button in form:
|
||||
$('form.form-horizontal').on('submit',function(e) {
|
||||
$('button[type="submit"]').prop('disabled',true);
|
||||
});
|
||||
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
|
||||
|
Reference in New Issue
Block a user