undo test

This commit is contained in:
2025-01-04 02:15:04 -05:00
parent 41e082e3e0
commit 0f8cf7fa2b

View File

@@ -582,20 +582,30 @@ function GetHtmlContent {
<script> <script>
function toggleOnboardCheckboxes(selectedCheckbox) { function toggleOnboardCheckboxes(selectedCheckbox) {
// Log the checkboxes for debugging
console.log("Selected Checkbox:", selectedCheckbox.id);
const checkboxes = document.querySelectorAll('#onboardTab input[type="checkbox"]:not(#selectAllOnboardCheckbox)'); const checkboxes = document.querySelectorAll('#onboardTab input[type="checkbox"]:not(#selectAllOnboardCheckbox)');
const dattoRMMCheckbox = document.getElementById('installDattoRMMCheckbox');
const optionsContainer = document.getElementById('dattoRMMOptionsContainer');
const n8nPasswordContainer = document.getElementById('n8nPasswordContainer');
const dattoRMMContainer = document.getElementById('DattoRMMContainer');
// Log all checkboxes in the group
console.log("Checkboxes to toggle:", checkboxes);
// Toggle the state of each checkbox
checkboxes.forEach(checkbox => { checkboxes.forEach(checkbox => {
if (checkbox !== selectedCheckbox) {
checkbox.checked = selectedCheckbox.checked; checkbox.checked = selectedCheckbox.checked;
console.log(`Toggled checkbox: ${checkbox.id}, Checked state: ${checkbox.checked}`); }
}); });
}
if (dattoRMMCheckbox.checked) {
optionsContainer.style.display = 'block';
n8nPasswordContainer.style.display = 'block';
dattoRMMContainer.style.display = 'block';
} else {
optionsContainer.style.display = 'none';
n8nPasswordContainer.style.display = 'none';
dattoRMMContainer.style.display = 'none';
}
}
function toggleDattoRMMOptions() { function toggleDattoRMMOptions() {