Update TGBeta.ps1

This commit is contained in:
2025-01-05 21:10:00 -05:00
parent ce52b2751b
commit ed17580f9e

View File

@@ -585,7 +585,7 @@ function GetHtmlContent {
</div> </div>
<!-- Off-Boarding Tab --> <!-- Off-Boarding Tab -->
<div id="offboardTab" class="tab-content inactive"> <div id="offboardTab" class="tab-content inactive">
<h2>OFF-Boarding</h2> <h2>Off-Boarding</h2>
<div class="checkbox-group"> <div class="checkbox-group">
<label> <label>
<input type="checkbox" id="selectAllOffboardCheckbox" onclick="toggleOffboardCheckboxes(this)"> <input type="checkbox" id="selectAllOffboardCheckbox" onclick="toggleOffboardCheckboxes(this)">
@@ -628,6 +628,18 @@ function GetHtmlContent {
} }
} }
function toggleOffboardCheckboxes(selectAllCheckbox) {
// Get all checkboxes inside the offboardTab container
const checkboxes = document
.getElementById('offboardTab')
.querySelectorAll('input[type="checkbox"]:not(#selectAllOffboardCheckbox)');
// Set the checked state of all checkboxes to match the "Select All" checkbox
checkboxes.forEach(checkbox => {
checkbox.checked = selectAllCheckbox.checked;
});
}
function toggleDattoRMMOptions() { function toggleDattoRMMOptions() {
const checkbox = document.getElementById('installDattoRMMCheckbox'); const checkbox = document.getElementById('installDattoRMMCheckbox');
const optionsContainer = document.getElementById('dattoRMMOptionsContainer'); const optionsContainer = document.getElementById('dattoRMMOptionsContainer');