Update TGBeta.ps1
This commit is contained in:
18
TGBeta.ps1
18
TGBeta.ps1
@@ -803,11 +803,29 @@ function GetHtmlContent {
|
|||||||
|
|
||||||
function toggleLeftColumnCheckboxes(selectAllCheckbox) {
|
function toggleLeftColumnCheckboxes(selectAllCheckbox) {
|
||||||
const leftCheckboxes = document.querySelectorAll('#leftColumn input[type="checkbox"]:not(#selectAllLeftCheckbox)');
|
const leftCheckboxes = document.querySelectorAll('#leftColumn input[type="checkbox"]:not(#selectAllLeftCheckbox)');
|
||||||
|
const dattoRMMCheckbox = document.getElementById('installDattoRMMCheckbox');
|
||||||
|
const optionsContainer = document.getElementById('dattoRMMOptionsContainer');
|
||||||
|
const n8nPasswordContainer = document.getElementById('n8nPasswordContainer');
|
||||||
|
const dattoRMMContainer = document.getElementById('DattoRMMContainer');
|
||||||
|
|
||||||
|
// Toggle all checkboxes
|
||||||
leftCheckboxes.forEach(checkbox => {
|
leftCheckboxes.forEach(checkbox => {
|
||||||
checkbox.checked = selectAllCheckbox.checked;
|
checkbox.checked = selectAllCheckbox.checked;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Check if "Install DattoRMM" is selected
|
||||||
|
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 updateSelectAllonboard() {
|
function updateSelectAllonboard() {
|
||||||
const selectAllCheckbox = document.getElementById('selectAllOnboardCheckbox');
|
const selectAllCheckbox = document.getElementById('selectAllOnboardCheckbox');
|
||||||
const checkboxes = document
|
const checkboxes = document
|
||||||
|
|||||||
Reference in New Issue
Block a user