mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Satisfy prettier check
This commit is contained in:
parent
6d5af67da8
commit
3c36549ff1
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -17,8 +17,7 @@ function toggleFloat(): void {
|
|||||||
const isFloating = buttonGroup.classList.contains('btn-float-group-left');
|
const isFloating = buttonGroup.classList.contains('btn-float-group-left');
|
||||||
if (checkedCheckboxes !== null && !isFloating) {
|
if (checkedCheckboxes !== null && !isFloating) {
|
||||||
buttonGroup.classList.add('btn-float-group-left');
|
buttonGroup.classList.add('btn-float-group-left');
|
||||||
}
|
} else if (checkedCheckboxes === null && isFloating) {
|
||||||
else if (checkedCheckboxes === null && isFloating) {
|
|
||||||
buttonGroup.classList.remove('btn-float-group-left');
|
buttonGroup.classList.remove('btn-float-group-left');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -27,9 +26,7 @@ function toggleFloat(): void {
|
|||||||
* Initialize floating bulk buttons.
|
* Initialize floating bulk buttons.
|
||||||
*/
|
*/
|
||||||
export function initFloatBulk(): void {
|
export function initFloatBulk(): void {
|
||||||
for (const element of getElements<HTMLInputElement>(
|
for (const element of getElements<HTMLInputElement>('input[type="checkbox"][name="pk"]')) {
|
||||||
'input[type="checkbox"][name="pk"]',
|
|
||||||
)) {
|
|
||||||
element.addEventListener('change', () => {
|
element.addEventListener('change', () => {
|
||||||
toggleFloat();
|
toggleFloat();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user