Renamed the setBaseAccount method to saveBaseAccount in the JavaScript AccountForm form, for consistency.

This commit is contained in:
依瑪貓 2023-03-24 07:20:40 +08:00
parent 7459afd63a
commit 8a174d8847

View File

@ -138,11 +138,11 @@ class AccountForm {
}
/**
* Sets the base account.
* Saves the selected base account.
*
* @param account {BaseAccountOption} the selected base account
*/
setBaseAccount(account) {
saveBaseAccount(account) {
this.#baseCode.value = account.code;
this.#base.innerText = account.text;
if (["1", "2", "3"].includes(account.code.substring(0, 1))) {
@ -385,7 +385,7 @@ class BaseAccountOption {
this.text = element.dataset.text;
this.#queryValues = JSON.parse(element.dataset.queryValues);
this.#element.onclick = () => this.#selector.form.setBaseAccount(this);
this.#element.onclick = () => this.#selector.form.saveBaseAccount(this);
}
/**