Update samy.js
This commit is contained in:
23
samy.js
23
samy.js
@@ -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
|
// 3) Remaining tasks
|
||||||
for (const t of 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);
|
const cb = document.getElementById(t.id);
|
||||||
if (!cb || !cb.checked) continue;
|
if (!cb || !cb.checked) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user