From 0d02f414170d675af251889540292583ed8ce592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 16 Apr 2026 11:09:07 +0800 Subject: [PATCH] Fix the typo in the variable name from conform to confirm in period-chooser.js --- src/accounting/static/js/period-chooser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/static/js/period-chooser.js b/src/accounting/static/js/period-chooser.js index 2625be6..a4a3e43 100644 --- a/src/accounting/static/js/period-chooser.js +++ b/src/accounting/static/js/period-chooser.js @@ -2,7 +2,7 @@ * period-chooser.js: The JavaScript for the period chooser */ -/* Copyright (c) 2023 imacat. +/* Copyright (c) 2023-2026 imacat. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -320,7 +320,7 @@ class CustomTab extends TabPlane { * The confirm button * @type {HTMLButtonElement} */ - #conform; + #confirm; /** * Constructs a tab plane. @@ -333,7 +333,7 @@ class CustomTab extends TabPlane { this.#startError = document.getElementById(`${this.prefix}-start-error`); this.#end = document.getElementById(`${this.prefix}-end`); this.#endError = document.getElementById(`${this.prefix}-end-error`); - this.#conform = document.getElementById(`${this.prefix}-confirm`); + this.#confirm = document.getElementById(`${this.prefix}-confirm`); if (this.#start !== null) { this.#start.onchange = () => { if (this.#validateStart()) { @@ -345,7 +345,7 @@ class CustomTab extends TabPlane { this.#start.max = this.#end.value; } }; - this.#conform.onclick = () => { + this.#confirm.onclick = () => { let isValid = true; isValid = this.#validateStart() && isValid; isValid = this.#validateEnd() && isValid;