From a4ab8a761cce005b6901706c47ad22a8b22f934d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 22 Mar 2023 23:56:37 +0800 Subject: [PATCH] Renamed the "content" dataset to "text" in the base account selector of the account form, for consistency. --- src/accounting/static/js/account-form.js | 2 +- src/accounting/templates/accounting/account/include/form.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/static/js/account-form.js b/src/accounting/static/js/account-form.js index edd8449..235ad3c 100644 --- a/src/accounting/static/js/account-form.js +++ b/src/accounting/static/js/account-form.js @@ -282,7 +282,7 @@ class BaseAccountSelector { }); for (const option of this.#options) { option.onclick = () => { - this.#form.setBaseAccount(option.dataset.code, option.dataset.content); + this.#form.setBaseAccount(option.dataset.code, option.dataset.text); }; } this.#clearButton.onclick = () => { diff --git a/src/accounting/templates/accounting/account/include/form.html b/src/accounting/templates/accounting/account/include/form.html index b82bff1..00fb48a 100644 --- a/src/accounting/templates/accounting/account/include/form.html +++ b/src/accounting/templates/accounting/account/include/form.html @@ -101,7 +101,7 @@ First written: 2023/2/1