Update TGBeta.ps1
This commit is contained in:
25
TGBeta.ps1
25
TGBeta.ps1
@@ -669,18 +669,6 @@ 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 updateSelectAllonboard() {
|
function updateSelectAllonboard() {
|
||||||
const selectAllCheckbox = document.getElementById('selectAllonboardCheckbox');
|
const selectAllCheckbox = document.getElementById('selectAllonboardCheckbox');
|
||||||
const checkboxes = document
|
const checkboxes = document
|
||||||
@@ -696,6 +684,19 @@ function GetHtmlContent {
|
|||||||
checkbox.addEventListener('change', updateSelectAllonboard);
|
checkbox.addEventListener('change', updateSelectAllonboard);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
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 updateSelectAllOffboard() {
|
function updateSelectAllOffboard() {
|
||||||
const selectAllCheckbox = document.getElementById('selectAllOffboardCheckbox');
|
const selectAllCheckbox = document.getElementById('selectAllOffboardCheckbox');
|
||||||
const checkboxes = document
|
const checkboxes = document
|
||||||
|
|||||||
Reference in New Issue
Block a user