Update TGBeta.ps1
This commit is contained in:
18
TGBeta.ps1
18
TGBeta.ps1
@@ -951,6 +951,14 @@ function GetHtmlContent {
|
||||
}
|
||||
}
|
||||
|
||||
function updateSelectAllCheckbox(selectAllId, checkboxGroupSelector) {
|
||||
const selectAllCheckbox = document.getElementById(selectAllId);
|
||||
const checkboxes = document.querySelectorAll(checkboxGroupSelector);
|
||||
|
||||
// If any checkbox is unchecked, uncheck "Select All"
|
||||
selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked);
|
||||
}
|
||||
|
||||
function toggleLeftColumnCheckboxes(selectAllCheckbox) {
|
||||
const leftCheckboxes = document.querySelectorAll('#leftColumn input[type="checkbox"]:not(#selectAllLeftCheckbox)');
|
||||
const dattoRMMCheckbox = document.getElementById('installDattoRMMCheckbox');
|
||||
@@ -976,16 +984,6 @@ function GetHtmlContent {
|
||||
}
|
||||
|
||||
|
||||
function updateSelectAllonboard() {
|
||||
const selectAllCheckbox = document.getElementById('selectAllOnboardCheckbox');
|
||||
const checkboxes = document
|
||||
.getElementById('onboardTab')
|
||||
.querySelectorAll('input[type="checkbox"]:not(#selectAllOnboardCheckbox)');
|
||||
|
||||
// If any checkbox is unchecked, uncheck "Select All"
|
||||
selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked);
|
||||
}
|
||||
|
||||
function gatherSelectedTasks() {
|
||||
const selectedLeftTasks = Array.from(document.querySelectorAll('.left-checkbox:checked')).map(checkbox => checkbox.name);
|
||||
const selectedRightTasks = Array.from(document.querySelectorAll('.right-checkbox:checked')).map(checkbox => checkbox.name);
|
||||
|
||||
Reference in New Issue
Block a user