Update TGBeta.ps1
This commit is contained in:
20
TGBeta.ps1
20
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) {
|
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 dattoRMMCheckbox = document.getElementById('installDattoRMMCheckbox');
|
||||||
@@ -975,17 +983,7 @@ 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() {
|
function gatherSelectedTasks() {
|
||||||
const selectedLeftTasks = Array.from(document.querySelectorAll('.left-checkbox:checked')).map(checkbox => checkbox.name);
|
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);
|
const selectedRightTasks = Array.from(document.querySelectorAll('.right-checkbox:checked')).map(checkbox => checkbox.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user