mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Disable button form on submit.
This commit is contained in:
parent
c9a99be183
commit
cb8294cbd2
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user