Update samy.js

This commit is contained in:
2025-12-21 19:49:21 -05:00
parent b3edb96eea
commit 9df26a70de

12
samy.js
View File

@@ -756,12 +756,12 @@ document.addEventListener("DOMContentLoaded", () => {
// Keep your Datto UI show/hide behavior
if (taskId === "installDattoRMM") {
const pwdBox = document.getElementById("PasswordContainer");
const rmmBox = document.getElementById("dattoRmmContainer");
if (pwdBox) pwdBox.style.display = checked ? "block" : "none";
if (rmmBox) rmmBox.style.display = checked ? "block" : "none";
}
// if (taskId === "installDattoRMM") {
// const pwdBox = document.getElementById("PasswordContainer");
// const rmmBox = document.getElementById("dattoRmmContainer");
// if (pwdBox) pwdBox.style.display = checked ? "block" : "none";
// if (rmmBox) rmmBox.style.display = checked ? "block" : "none";
// }
}
masterCheckbox.addEventListener("change", updateVisibility);