From ab29166f1e75d8173f12209175ebb4c0c11a5e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 3 Apr 2023 10:18:47 +0800 Subject: [PATCH] Renamed the "#reset" method to "#resetTabPlanes" in the JavaScript DescriptionEditor, to be clear. --- src/accounting/static/js/description-editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/static/js/description-editor.js b/src/accounting/static/js/description-editor.js index 2340f8c..a169eef 100644 --- a/src/accounting/static/js/description-editor.js +++ b/src/accounting/static/js/description-editor.js @@ -199,7 +199,7 @@ class DescriptionEditor { * */ #onDescriptionChange() { - this.#reset(); + this.#resetTabPlanes(); this.description = this.description.trim(); for (const tabPlane of [this.tabPlanes.recurring, this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) { if (tabPlane.populate()) { @@ -210,10 +210,10 @@ class DescriptionEditor { } /** - * Resets the description editor. + * Resets the tab planes. * */ - #reset() { + #resetTabPlanes() { for (const tabPlane of Object.values(this.tabPlanes)) { tabPlane.reset(); }