Fix ID capital O

This commit is contained in:
2025-01-06 23:43:48 -05:00
parent b7dee832da
commit 8648418dde

View File

@@ -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);
});