From 83b0dd3026bf5b645ebc242dd505594b55d0cdc1 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 26 Nov 2024 02:14:07 +0800 Subject: [PATCH] WebUI: fix checkbox initialization Previously the checkbox had all options checked regardless of the stored setting. --- src/webui/www/private/views/log.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/views/log.html b/src/webui/www/private/views/log.html index 6590f0ef5..3fa373fd0 100644 --- a/src/webui/www/private/views/log.html +++ b/src/webui/www/private/views/log.html @@ -189,7 +189,7 @@ const init = () => { for (const option of $("logLevelSelect").options) - option.setAttribute("selected", selectedLogLevels.includes(option.value)); + option.toggleAttribute("selected", selectedLogLevels.includes(option.value)); selectBox = new vanillaSelectBox("#logLevelSelect", { maxHeight: 200,