Update samy.js

This commit is contained in:
2025-12-21 19:48:34 -05:00
parent 6ac08e1839
commit b3edb96eea

23
samy.js
View File

@@ -597,9 +597,30 @@ async function triggerInstall() {
}
}
// X) Disable Animations (POST suboptions)
if (disableAnimCB && disableAnimCB.checked) {
// turning ON -> send only the selected sub-options
const sub = Array.from(
document.querySelectorAll(".sub-option-disableAnimations:checked")
).map((x) => x.value);
try {
await fetch("/disableAnimations", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ checkedValues: sub }),
});
logProgress("Disable Animations", true);
} catch (e) {
logProgress("Disable Animations", false);
console.error(e);
}
}
// 3) Remaining tasks
for (const t of tasks) {
if (["installDattoRMM", "installSVSMSPModule", "renameComputer"].includes(t.id)) continue;
if (["installDattoRMM", "installSVSMSPModule", "renameComputer", "install1Password", "disableAnimations"].includes(t.id)) continue;
const cb = document.getElementById(t.id);
if (!cb || !cb.checked) continue;