Removed the redundant #init method from the JavaScript AccountSelector class.
This commit is contained in:
		@@ -53,14 +53,6 @@ class AccountSelector {
 | 
				
			|||||||
    constructor(modal) {
 | 
					    constructor(modal) {
 | 
				
			||||||
        this.#entryType = modal.dataset.entryType;
 | 
					        this.#entryType = modal.dataset.entryType;
 | 
				
			||||||
        this.#prefix = "accounting-account-selector-" + modal.dataset.entryType;
 | 
					        this.#prefix = "accounting-account-selector-" + modal.dataset.entryType;
 | 
				
			||||||
        this.#init();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * Initializes the account selector.
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    #init() {
 | 
					 | 
				
			||||||
        const formAccountControl = document.getElementById("accounting-entry-form-account-control");
 | 
					        const formAccountControl = document.getElementById("accounting-entry-form-account-control");
 | 
				
			||||||
        const formAccount = document.getElementById("accounting-entry-form-account");
 | 
					        const formAccount = document.getElementById("accounting-entry-form-account");
 | 
				
			||||||
        const more = document.getElementById(this.#prefix + "-more");
 | 
					        const more = document.getElementById(this.#prefix + "-more");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user