From 907ce6d06e70844b23870b80c83f7dc62f4f7a69 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:55:28 +0800 Subject: [PATCH] Renamed the "content" dataset to "text" in the account selector of the journal entry form, for consistency. --- src/accounting/static/js/account-selector.js | 2 +- .../journal-entry/include/account-selector-modal.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/static/js/account-selector.js b/src/accounting/static/js/account-selector.js index 761fb01..7fd617f 100644 --- a/src/accounting/static/js/account-selector.js +++ b/src/accounting/static/js/account-selector.js @@ -105,7 +105,7 @@ class AccountSelector { }; this.#clearButton.onclick = () => this.#lineItemEditor.clearAccount(); for (const option of this.#options) { - option.onclick = () => this.#lineItemEditor.saveAccount(option.dataset.code, option.dataset.content, option.classList.contains("accounting-account-is-need-offset")); + option.onclick = () => this.#lineItemEditor.saveAccount(option.dataset.code, option.dataset.text, option.classList.contains("accounting-account-is-need-offset")); } this.#query.addEventListener("input", () => { this.#filterOptions(); diff --git a/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html b/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html index ee2fd10..f3e247f 100644 --- a/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html +++ b/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html @@ -37,7 +37,7 @@ First written: 2023/2/25