diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 8e653376d..a4365ca63 100644 Binary files a/netbox/project-static/dist/netbox.js and b/netbox/project-static/dist/netbox.js differ diff --git a/netbox/project-static/dist/netbox.js.map b/netbox/project-static/dist/netbox.js.map index cce0975e3..3bee1b2ac 100644 Binary files a/netbox/project-static/dist/netbox.js.map and b/netbox/project-static/dist/netbox.js.map differ diff --git a/netbox/project-static/src/buttons/floatBulk.ts b/netbox/project-static/src/buttons/floatBulk.ts index 0f1a3dce2..7209dd7ca 100644 --- a/netbox/project-static/src/buttons/floatBulk.ts +++ b/netbox/project-static/src/buttons/floatBulk.ts @@ -1,12 +1,16 @@ import { getElements } from '../util'; - + /** * Conditionally add and remove a class that will float the button group * based on whether or not items in the list are checked */ function toggleFloat(): void { - const checkedCheckboxes = document.querySelector('input[type="checkbox"][name="pk"]:checked'); - const buttonGroup = document.querySelector('div.form.form-horizontal div.btn-list'); + const checkedCheckboxes = document.querySelector( + 'input[type="checkbox"][name="pk"]:checked', + ); + const buttonGroup = document.querySelector( + 'div.form.form-horizontal div.btn-list', + ); if (!buttonGroup) { return; } @@ -19,19 +23,22 @@ function toggleFloat(): void { } } - /** * Initialize floating bulk buttons. */ export function initFloatBulk(): void { - for (const element of getElements('input[type="checkbox"][name="pk"]')) { - element.addEventListener('change', event => { + for (const element of getElements( + 'input[type="checkbox"][name="pk"]', + )) { + element.addEventListener('change', () => { toggleFloat(); }); } // Handle the select-all checkbox - for (const element of getElements('table tr th > input[type="checkbox"].toggle')) { - element.addEventListener('change', event => { + for (const element of getElements( + 'table tr th > input[type="checkbox"].toggle', + )) { + element.addEventListener('change', () => { toggleFloat(); }); }