Revised the coding style with the JavaScript arrow functions for the transaction form.

This commit is contained in:
2023-03-18 17:15:51 +08:00
parent fbeec600b7
commit be10a8d99e
3 changed files with 9 additions and 27 deletions

View File

@ -218,12 +218,8 @@ class JournalEntryEditor {
this.#originalEntryControl.onclick = () => OriginalEntrySelector.start(this, this.originalEntryId);
this.#originalEntryDelete.onclick = () => this.clearOriginalEntry();
this.#summaryControl.onclick = () => SummaryEditor.start(this, this.summary);
this.#accountControl.onclick = () => {
AccountSelector.start(this, this.entryType);
}
this.#amount.onchange = () => {
this.#validateAmount();
}
this.#accountControl.onclick = () => AccountSelector.start(this, this.entryType);
this.#amount.onchange = () => this.#validateAmount();
this.#element.onsubmit = () => {
if (this.#validate()) {
if (this.entry === null) {