diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 50b9ca705..71b1fc774 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 431f5e626..8f4dde4e2 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/links.ts b/netbox/project-static/src/links.ts deleted file mode 100644 index d39f3605b..000000000 --- a/netbox/project-static/src/links.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { isTruthy, getElements } from './util'; - -/** - * Allow any element to be made "clickable" with the use of the `data-href` attribute. - */ -export function initLinks(): void { - for (const link of getElements('*[data-href]')) { - const href = link.getAttribute('data-href'); - if (isTruthy(href)) { - link.addEventListener('click', () => { - window.location.assign(href); - }); - } - } -} diff --git a/netbox/project-static/src/netbox.ts b/netbox/project-static/src/netbox.ts index 8c274c64b..59faab222 100644 --- a/netbox/project-static/src/netbox.ts +++ b/netbox/project-static/src/netbox.ts @@ -12,7 +12,6 @@ import { initInterfaceTable } from './tables'; import { initSideNav } from './sidenav'; import { initDashboard } from './dashboard'; import { initRackElevation } from './racks'; -import { initLinks } from './links'; import { initHtmx } from './htmx'; function initDocument(): void { @@ -31,7 +30,6 @@ function initDocument(): void { initSideNav, initDashboard, initRackElevation, - initLinks, initHtmx, ]) { init();