Fix ID capital O
This commit is contained in:
@@ -672,17 +672,17 @@ function GetHtmlContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateSelectAllonboard() {
|
function updateSelectAllonboard() {
|
||||||
const selectAllCheckbox = document.getElementById('selectAllonboardCheckbox');
|
const selectAllCheckbox = document.getElementById('selectAllOnboardCheckbox');
|
||||||
const checkboxes = document
|
const checkboxes = document
|
||||||
.getElementById('onboardTab')
|
.getElementById('onboardTab')
|
||||||
.querySelectorAll('input[type="checkbox"]:not(#selectAllonboardCheckbox)');
|
.querySelectorAll('input[type="checkbox"]:not(#selectAllOnboardCheckbox)');
|
||||||
|
|
||||||
// If any checkbox is unchecked, uncheck "Select All"
|
// If any checkbox is unchecked, uncheck "Select All"
|
||||||
selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked);
|
selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach the updateSelectAllonboard function to all individual checkboxes
|
// 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);
|
checkbox.addEventListener('change', updateSelectAllonboard);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user