special styling for checkboxes in table headers

This commit is contained in:
Felix Hamann 2019-04-24 19:16:58 +02:00
parent 48e42d41e1
commit 60c9de44c5
2 changed files with 8 additions and 2 deletions

View File

@ -74,3 +74,9 @@
filter: grayscale(1);
}
}
/* special treatment for checkboxes in table headers */
th .checkbox {
margin-right: 7px;
vertical-align: bottom;
}

View File

@ -96,9 +96,9 @@
checkAllCheckbox.setAttribute('id', getCheckboxId());
th.insertBefore(checkAllCheckbox, th.firstChild);
// manually set up newly created checkbox
// manually set up new checkbox
if (UtilRegistry) {
UtilRegistry.setup(UtilRegistry.find('checkbox'));
UtilRegistry.setup(UtilRegistry.find('checkbox'), th);
}
checkAllCheckbox.addEventListener('input', onCheckAllCheckboxInput);