mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Fix #10320
This commit is contained in:
@@ -244,7 +244,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button id="submitButton" class="btn btn-success" @click="submit">{{
|
<button id="submitButton" ref="submitButtonRef" class="btn btn-success" @click="submit">{{
|
||||||
$t('firefly.update_transaction')
|
$t('firefly.update_transaction')
|
||||||
}}
|
}}
|
||||||
</button>
|
</button>
|
||||||
@@ -803,7 +803,7 @@ export default {
|
|||||||
},
|
},
|
||||||
submit: function (e) {
|
submit: function (e) {
|
||||||
// console.log('Submit!');
|
// console.log('Submit!');
|
||||||
let button = $(e.currentTarget);
|
let button = $('#submitButton');
|
||||||
button.prop("disabled", true);
|
button.prop("disabled", true);
|
||||||
|
|
||||||
const page = window.location.href.split('/');
|
const page = window.location.href.split('/');
|
||||||
@@ -835,6 +835,7 @@ export default {
|
|||||||
// something something render errors.
|
// something something render errors.
|
||||||
this.parseErrors(error.response.data);
|
this.parseErrors(error.response.data);
|
||||||
// something.
|
// something.
|
||||||
|
button.removeAttr('disabled');
|
||||||
});
|
});
|
||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Reference in New Issue
Block a user