feat(webui): automatically commit toggle changes #2198

Merged
Sainan merged 2 commits from autosave into main 2025-06-18 11:05:08 -07:00
Showing only changes of commit 906bc6406a - Show all commits

View File

@ -1764,7 +1764,7 @@ const uiConfigs = [...$("#server-settings input[id]")].map(x => x.id);
for (const id of uiConfigs) { for (const id of uiConfigs) {
const elm = document.getElementById(id); const elm = document.getElementById(id);
if (elm.type == "checkbox") { if (elm.type == "checkbox") {
elm.onchange = function() { elm.onchange = function () {
$.post({ $.post({
url: "/custom/config?" + window.authz, url: "/custom/config?" + window.authz,
contentType: "application/json", contentType: "application/json",