From d976433a10fa365dffec2ee8ac290f0502039f44 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 6 Jan 2025 23:19:16 -0500 Subject: [PATCH] Update TGBeta.ps1 --- TGBeta.ps1 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) 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