Update TGBeta.ps1
This commit is contained in:
30
TGBeta.ps1
30
TGBeta.ps1
@@ -1139,18 +1139,36 @@ function GetHtmlContent {
|
|||||||
alert("Tweaks applied successfully!");
|
alert("Tweaks applied successfully!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function toggleDattoRMMOptions() {
|
function toggleDattoRMMOptions() {
|
||||||
const checkbox = document.getElementById('installDattoRMMCheckbox');
|
const dattoRMMCheckbox = document.getElementById('installDattoRMMCheckbox');
|
||||||
const optionsContainer = document.getElementById('dattoRMMOptionsContainer');
|
const optionsContainer = document.getElementById('dattoRMMOptionsContainer');
|
||||||
const n8nPasswordContainer = document.getElementById('n8nPasswordContainer');
|
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';
|
// Toggle visibility of sub-options
|
||||||
n8nPasswordContainer.style.display = checkbox.checked ? 'block' : 'none';
|
if (dattoRMMCheckbox.checked) {
|
||||||
DattoRMMContainer.style.display = checkbox.checked ? 'block' : 'none';
|
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 tabButtons = document.querySelectorAll('.tab-button');
|
||||||
const tabContents = document.querySelectorAll('.tab-content');
|
const tabContents = document.querySelectorAll('.tab-content');
|
||||||
const logArea = document.getElementById('logArea');
|
const logArea = document.getElementById('logArea');
|
||||||
|
|||||||
Reference in New Issue
Block a user