From 46fe26a8fffc518aabfa0e840007cdb65d573199 Mon Sep 17 00:00:00 2001 From: AlexisinGit <136088944+AlexisinGit@users.noreply.github.com> Date: Thu, 25 Sep 2025 18:01:41 +0800 Subject: [PATCH] fix changeSyndicate button hight logic --- static/webui/index.html | 2 +- static/webui/script.js | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/static/webui/index.html b/static/webui/index.html index 9094f42e..1262d487 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -1078,7 +1078,7 @@
- +
diff --git a/static/webui/script.js b/static/webui/script.js index 395126b5..31840553 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -3213,12 +3213,20 @@ document.querySelectorAll("#account-cheats input[type=checkbox]").forEach(elm => document.querySelectorAll("#account-cheats .input-group").forEach(grp => { const input = grp.querySelector("input"); + const select = grp.querySelector("select"); const btn = grp.querySelector("button"); - if (!input || !btn) return; - input.oninput = input.onchange = function () { - btn.classList.remove("btn-secondary"); - btn.classList.add("btn-primary"); - }; + if (input) { + input.oninput = input.onchange = function () { + btn.classList.remove("btn-secondary"); + btn.classList.add("btn-primary"); + }; + } + if (select) { + select.oninput = select.onchange = function () { + btn.classList.remove("btn-secondary"); + btn.classList.add("btn-primary"); + }; + } btn.onclick = function () { btn.classList.remove("btn-primary"); btn.classList.add("btn-secondary");