diff --git a/TGBeta.ps1 b/TGBeta.ps1 index 999d778..7eda934 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -672,17 +672,17 @@ function GetHtmlContent { } function updateSelectAllonboard() { - const selectAllCheckbox = document.getElementById('selectAllonboardCheckbox'); + const selectAllCheckbox = document.getElementById('selectAllOnboardCheckbox'); const checkboxes = document .getElementById('onboardTab') - .querySelectorAll('input[type="checkbox"]:not(#selectAllonboardCheckbox)'); + .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 => { + document.querySelectorAll('#onboardTab input[type="checkbox"]:not(#selectAllOnboardCheckbox)').forEach(checkbox => { checkbox.addEventListener('change', updateSelectAllonboard); });