Fix the typo in the variable name from conform to confirm in period-chooser.js
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* period-chooser.js: The JavaScript for the period chooser
|
* 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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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
|
* The confirm button
|
||||||
* @type {HTMLButtonElement}
|
* @type {HTMLButtonElement}
|
||||||
*/
|
*/
|
||||||
#conform;
|
#confirm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a tab plane.
|
* Constructs a tab plane.
|
||||||
@@ -333,7 +333,7 @@ class CustomTab extends TabPlane {
|
|||||||
this.#startError = document.getElementById(`${this.prefix}-start-error`);
|
this.#startError = document.getElementById(`${this.prefix}-start-error`);
|
||||||
this.#end = document.getElementById(`${this.prefix}-end`);
|
this.#end = document.getElementById(`${this.prefix}-end`);
|
||||||
this.#endError = document.getElementById(`${this.prefix}-end-error`);
|
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) {
|
if (this.#start !== null) {
|
||||||
this.#start.onchange = () => {
|
this.#start.onchange = () => {
|
||||||
if (this.#validateStart()) {
|
if (this.#validateStart()) {
|
||||||
@@ -345,7 +345,7 @@ class CustomTab extends TabPlane {
|
|||||||
this.#start.max = this.#end.value;
|
this.#start.max = this.#end.value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.#conform.onclick = () => {
|
this.#confirm.onclick = () => {
|
||||||
let isValid = true;
|
let isValid = true;
|
||||||
isValid = this.#validateStart() && isValid;
|
isValid = this.#validateStart() && isValid;
|
||||||
isValid = this.#validateEnd() && isValid;
|
isValid = this.#validateEnd() && isValid;
|
||||||
|
|||||||
Reference in New Issue
Block a user