chore(webui): indicate unsaved changes #2436
@ -1957,11 +1957,11 @@ for (const id of uiConfigs) {
|
|||||||
document.querySelectorAll(".config-form .input-group").forEach(grp => {
|
document.querySelectorAll(".config-form .input-group").forEach(grp => {
|
||||||
const input = grp.querySelector("input");
|
const input = grp.querySelector("input");
|
||||||
const btn = grp.querySelector("button");
|
const btn = grp.querySelector("button");
|
||||||
input.oninput = input.onchange = function() {
|
input.oninput = input.onchange = function () {
|
||||||
btn.classList.remove("btn-secondary");
|
btn.classList.remove("btn-secondary");
|
||||||
btn.classList.add("btn-primary");
|
btn.classList.add("btn-primary");
|
||||||
};
|
};
|
||||||
btn.onclick = function() {
|
btn.onclick = function () {
|
||||||
btn.classList.remove("btn-primary");
|
btn.classList.remove("btn-primary");
|
||||||
btn.classList.add("btn-secondary");
|
btn.classList.add("btn-secondary");
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user