Removed the redundant "entryType" parameter from the static "start" method of JavaScript AccountSelector.
This commit is contained in:
parent
fc766724c4
commit
c9453d3023
@ -234,9 +234,8 @@ class AccountSelector {
|
|||||||
* Starts the account selector.
|
* Starts the account selector.
|
||||||
*
|
*
|
||||||
* @param entryEditor {JournalEntryEditor} the journal entry editor
|
* @param entryEditor {JournalEntryEditor} the journal entry editor
|
||||||
* @param entryType {string} the entry type, either "debit" or "credit"
|
|
||||||
*/
|
*/
|
||||||
static start(entryEditor, entryType) {
|
static start(entryEditor) {
|
||||||
this.#selectors[entryType].#onOpen(entryEditor);
|
this.#selectors[entryEditor.entryType].#onOpen(entryEditor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -221,7 +221,7 @@ class JournalEntryEditor {
|
|||||||
this.#originalEntryControl.onclick = () => OriginalEntrySelector.start(this, this.originalEntryId);
|
this.#originalEntryControl.onclick = () => OriginalEntrySelector.start(this, this.originalEntryId);
|
||||||
this.#originalEntryDelete.onclick = () => this.clearOriginalEntry();
|
this.#originalEntryDelete.onclick = () => this.clearOriginalEntry();
|
||||||
this.#summaryControl.onclick = () => SummaryEditor.start(this);
|
this.#summaryControl.onclick = () => SummaryEditor.start(this);
|
||||||
this.#accountControl.onclick = () => AccountSelector.start(this, this.entryType);
|
this.#accountControl.onclick = () => AccountSelector.start(this);
|
||||||
this.#amount.onchange = () => this.#validateAmount();
|
this.#amount.onchange = () => this.#validateAmount();
|
||||||
this.#element.onsubmit = () => {
|
this.#element.onsubmit = () => {
|
||||||
if (this.#validate()) {
|
if (this.#validate()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user