Removed the initializeNewJournalEntry method from the JavaScript SummaryEditor. It does not do meaningful things at all.

This commit is contained in:
依瑪貓 2023-03-13 17:51:51 +08:00
parent 2325842471
commit 2013f8cbd9
2 changed files with 0 additions and 10 deletions

View File

@ -299,15 +299,6 @@ class SummaryEditor {
} }
formSummaryControl.onclick = () => this.#editors[entryForm.dataset.entryType].#onOpen() formSummaryControl.onclick = () => this.#editors[entryForm.dataset.entryType].#onOpen()
} }
/**
* Initializes the summary editor for a new journal entry.
*
* @param entryType {string} the entry type, either "debit" or "credit"
*/
static initializeNewJournalEntry(entryType) {
this.#editors[entryType].#onOpen();
}
} }
/** /**

View File

@ -481,7 +481,6 @@ class DebitCreditSideSubForm {
this.#addEntryButton.onclick = () => { this.#addEntryButton.onclick = () => {
JournalEntryEditor.addNew(this); JournalEntryEditor.addNew(this);
AccountSelector.initializeJournalEntryForm(); AccountSelector.initializeJournalEntryForm();
SummaryEditor.initializeNewJournalEntry(entryType);
}; };
this.#resetDeleteJournalEntryButtons(); this.#resetDeleteJournalEntryButtons();
this.#initializeDragAndDropReordering(); this.#initializeDragAndDropReordering();