Removed the initializeNewJournalEntry method from the JavaScript SummaryEditor. It does not do meaningful things at all.
This commit is contained in:
		@@ -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();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user