mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
Disable button form on submit.
This commit is contained in:
@@ -15,6 +15,11 @@ $(function () {
|
|||||||
|
|
||||||
configAccounting(currencySymbol);
|
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({
|
$.ajaxSetup({
|
||||||
headers: {
|
headers: {
|
||||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
|
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
|
||||||
|
|||||||
Reference in New Issue
Block a user