From b3edb96eea0e1c219cb120aa6041d0b932f26472 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sun, 21 Dec 2025 19:48:34 -0500 Subject: [PATCH] Update samy.js --- samy.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/samy.js b/samy.js index 66e70f6..90a2626 100644 --- a/samy.js +++ b/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 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;