Update TGBeta.ps1
This commit is contained in:
30
TGBeta.ps1
30
TGBeta.ps1
@@ -1139,18 +1139,36 @@ function GetHtmlContent {
|
||||
alert("Tweaks applied successfully!");
|
||||
}
|
||||
|
||||
|
||||
function toggleDattoRMMOptions() {
|
||||
const checkbox = document.getElementById('installDattoRMMCheckbox');
|
||||
const dattoRMMCheckbox = document.getElementById('installDattoRMMCheckbox');
|
||||
const optionsContainer = document.getElementById('dattoRMMOptionsContainer');
|
||||
const n8nPasswordContainer = document.getElementById('n8nPasswordContainer');
|
||||
const DattoRMMContainer = document.getElementById('DattoRMMContainer');
|
||||
const dattoRMMContainer = document.getElementById('DattoRMMContainer');
|
||||
const subCheckboxes = document.querySelectorAll('#dattoRMMOptionsContainer input[type="checkbox"]');
|
||||
|
||||
optionsContainer.style.display = checkbox.checked ? 'block' : 'none';
|
||||
n8nPasswordContainer.style.display = checkbox.checked ? 'block' : 'none';
|
||||
DattoRMMContainer.style.display = checkbox.checked ? 'block' : 'none';
|
||||
// Toggle visibility of sub-options
|
||||
if (dattoRMMCheckbox.checked) {
|
||||
optionsContainer.style.display = 'block';
|
||||
n8nPasswordContainer.style.display = 'block';
|
||||
dattoRMMContainer.style.display = 'block';
|
||||
|
||||
// Automatically check sub-checkboxes
|
||||
subCheckboxes.forEach(subCheckbox => {
|
||||
subCheckbox.checked = true;
|
||||
});
|
||||
} else {
|
||||
optionsContainer.style.display = 'none';
|
||||
n8nPasswordContainer.style.display = 'none';
|
||||
dattoRMMContainer.style.display = 'none';
|
||||
|
||||
// Automatically uncheck sub-checkboxes
|
||||
subCheckboxes.forEach(subCheckbox => {
|
||||
subCheckbox.checked = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const tabButtons = document.querySelectorAll('.tab-button');
|
||||
const tabContents = document.querySelectorAll('.tab-content');
|
||||
const logArea = document.getElementById('logArea');
|
||||
|
||||
Reference in New Issue
Block a user