Update TGBeta.ps1
This commit is contained in:
30
TGBeta.ps1
30
TGBeta.ps1
@@ -681,6 +681,36 @@ 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Attach the updateSelectAllonboard function to all individual checkboxes
|
||||||
|
document.querySelectorAll('#onboardTab input[type="checkbox"]:not(#selectAllonboardCheckbox)').forEach(checkbox => {
|
||||||
|
checkbox.addEventListener('change', updateSelectAllonboard);
|
||||||
|
});
|
||||||
|
|
||||||
|
function updateSelectAllOffboard() {
|
||||||
|
const selectAllCheckbox = document.getElementById('selectAllOffboardCheckbox');
|
||||||
|
const checkboxes = document
|
||||||
|
.getElementById('offboardTab')
|
||||||
|
.querySelectorAll('input[type="checkbox"]:not(#selectAllOffboardCheckbox)');
|
||||||
|
|
||||||
|
// If any checkbox is unchecked, uncheck "Select All"
|
||||||
|
selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Attach the updateSelectAllOffboard function to all individual checkboxes
|
||||||
|
document.querySelectorAll('#offboardTab input[type="checkbox"]:not(#selectAllOffboardCheckbox)').forEach(checkbox => {
|
||||||
|
checkbox.addEventListener('change', updateSelectAllOffboard);
|
||||||
|
});
|
||||||
|
|
||||||
function toggleTweaksCheckboxes(selectAllCheckbox) {
|
function toggleTweaksCheckboxes(selectAllCheckbox) {
|
||||||
// Get all checkboxes inside the tweaksTab container
|
// Get all checkboxes inside the tweaksTab container
|
||||||
const checkboxes = document
|
const checkboxes = document
|
||||||
|
|||||||
Reference in New Issue
Block a user