test
This commit is contained in:
@@ -582,28 +582,21 @@ 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() {
|
||||||
const checkbox = document.getElementById('installDattoRMMCheckbox');
|
const checkbox = document.getElementById('installDattoRMMCheckbox');
|
||||||
|
|||||||
Reference in New Issue
Block a user