From 20cb5cecc477cbb795bee1ff29e12e0f7436b049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 28 Feb 2023 22:14:03 +0800 Subject: [PATCH] Renamed the accounting-selector-modal class to accounting-account-selector-modal in the account selector. --- src/accounting/static/js/transaction-form.js | 2 +- .../accounting/transaction/include/account-selector-modal.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/static/js/transaction-form.js b/src/accounting/static/js/transaction-form.js index 250f611..5f3c051 100644 --- a/src/accounting/static/js/transaction-form.js +++ b/src/accounting/static/js/transaction-form.js @@ -480,7 +480,7 @@ function updateBalance(currencyIndex, entryType) { * @private */ function initializeAccountSelectors() { - const selectors = Array.from(document.getElementsByClassName("accounting-selector-modal")); + const selectors = Array.from(document.getElementsByClassName("accounting-account-selector-modal")); const formAccountControl = document.getElementById("accounting-entry-form-account-control"); const formAccount = document.getElementById("accounting-entry-form-account"); for (const selector of selectors) { diff --git a/src/accounting/templates/accounting/transaction/include/account-selector-modal.html b/src/accounting/templates/accounting/transaction/include/account-selector-modal.html index f059f30..b5b6035 100644 --- a/src/accounting/templates/accounting/transaction/include/account-selector-modal.html +++ b/src/accounting/templates/accounting/transaction/include/account-selector-modal.html @@ -19,7 +19,7 @@ account-selector-modal.html: The modal for the account selector Author: imacat@mail.imacat.idv.tw (imacat) First written: 2023/2/25 #} -