diff --git a/static/webui/index.html b/static/webui/index.html index 63d4d936..c155cc05 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -803,21 +803,21 @@
- +
- +
- +
@@ -942,14 +942,14 @@
- +
- +
diff --git a/static/webui/script.js b/static/webui/script.js index 9649019e..22a3203e 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -1954,6 +1954,19 @@ for (const id of uiConfigs) { } } +document.querySelectorAll(".config-form .input-group").forEach(grp => { + const input = grp.querySelector("input"); + const btn = grp.querySelector("button"); + input.oninput = input.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"); + }; +}); + function doSaveConfigInt(id) { $.post({ url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,