From 8a174d8847976f4ed45fbc697f4b95411e803441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 24 Mar 2023 07:20:40 +0800 Subject: [PATCH] Renamed the setBaseAccount method to saveBaseAccount in the JavaScript AccountForm form, for consistency. --- src/accounting/static/js/account-form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/static/js/account-form.js b/src/accounting/static/js/account-form.js index a391b64..448b526 100644 --- a/src/accounting/static/js/account-form.js +++ b/src/accounting/static/js/account-form.js @@ -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); } /**