From 4977847dd881c2937feb910d2086330fe4171dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 19 Mar 2023 07:30:03 +0800 Subject: [PATCH] Changed the entryType attribute of the JavaScript AccountSelector class from public to private, renamed it from entryType to #entryType. --- src/accounting/static/js/account-selector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/static/js/account-selector.js b/src/accounting/static/js/account-selector.js index 7bfc4c0..c4a7f8d 100644 --- a/src/accounting/static/js/account-selector.js +++ b/src/accounting/static/js/account-selector.js @@ -38,7 +38,7 @@ class AccountSelector { * The entry type * @type {string} */ - entryType; + #entryType; /** * The prefix of the HTML ID and class @@ -90,7 +90,7 @@ class AccountSelector { */ constructor(entryEditor, entryType) { this.#entryEditor = entryEditor - this.entryType = entryType; + this.#entryType = entryType; this.#prefix = "accounting-account-selector-" + entryType; this.#query = document.getElementById(this.#prefix + "-query"); this.#queryNoResult = document.getElementById(this.#prefix + "-option-no-result"); @@ -143,7 +143,7 @@ class AccountSelector { * @return {string[]} the account codes that are used in the form */ #getCodesUsedInForm() { - const inUse = this.#entryEditor.form.getAccountCodesUsed(this.entryType); + const inUse = this.#entryEditor.form.getAccountCodesUsed(this.#entryType); if (this.#entryEditor.accountCode !== null) { inUse.push(this.#entryEditor.accountCode); }