From 453b3f0da58cd6efd62e974633bbb47ec30a498b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 1 Mar 2023 01:31:25 +0800 Subject: [PATCH] Renamed the #tagInputOnChange method to #onTagInputChange in the JavaScript summary helper. --- src/accounting/static/js/summary-helper.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/static/js/summary-helper.js b/src/accounting/static/js/summary-helper.js index 3ff1c1d..fcde180 100644 --- a/src/accounting/static/js/summary-helper.js +++ b/src/accounting/static/js/summary-helper.js @@ -138,7 +138,7 @@ class SummaryHelper { } this.#initializeTagButtons("general", tag, updateSummary); tag.onchange = function () { - helper.#tagInputOnChange("general", tag, updateSummary); + helper.#onTagInputChange("general", tag, updateSummary); }; } @@ -165,7 +165,7 @@ class SummaryHelper { }; this.#initializeTagButtons("travel", tag, updateSummary); tag.onchange = function () { - helper.#tagInputOnChange("travel", tag, updateSummary); + helper.#onTagInputChange("travel", tag, updateSummary); helper.#validateGeneralTripTag(); }; from.onchange = function () { @@ -205,7 +205,7 @@ class SummaryHelper { }; this.#initializeTagButtons("bus", tag, updateSummary); tag.onchange = function () { - helper.#tagInputOnChange("bus", tag, updateSummary); + helper.#onTagInputChange("bus", tag, updateSummary); helper.#validateBusTripTag(); }; route.onchange = function () { @@ -254,7 +254,7 @@ class SummaryHelper { * @param tag {HTMLInputElement} the tag input * @param updateSummary {function(): void} the callback to update the summary */ - #tagInputOnChange(tabId, tag, updateSummary) { + #onTagInputChange(tabId, tag, updateSummary) { const tagButtons = Array.from(document.getElementsByClassName(this.#prefix + "-" + tabId + "-btn-tag")); let isMatched = false; for (const tagButton of tagButtons) {