diff --git a/TGBeta.ps1 b/TGBeta.ps1 index 6a4b816..207d456 100644 --- a/TGBeta.ps1 +++ b/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() { const selectAllCheckbox = document.getElementById('selectAllonboardCheckbox'); const checkboxes = document @@ -696,6 +684,19 @@ function GetHtmlContent { 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() { const selectAllCheckbox = document.getElementById('selectAllOffboardCheckbox'); const checkboxes = document