diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 0b93ac20f..d4be77e32 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 0faacc7df..aadc19273 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/forms/actions.ts b/netbox/project-static/src/forms/actions.ts deleted file mode 100644 index a83521d0d..000000000 --- a/netbox/project-static/src/forms/actions.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { getElements, findFirstAdjacent, isTruthy } from '../util'; - -/** - * Handle bulk add/edit/rename form actions. - * - * @param event Click Event - */ -function handleFormActionClick(event: Event): void { - event.preventDefault(); - const element = event.currentTarget as HTMLElement; - if (element !== null) { - const form = findFirstAdjacent(element, 'form'); - const href = element.getAttribute('href'); - if (form !== null && isTruthy(href)) { - form.setAttribute('action', href); - form.submit(); - } - } -} - -/** - * Initialize bulk form action links. - */ -export function initFormActions(): void { - for (const element of getElements('a.formaction')) { - element.addEventListener('click', handleFormActionClick); - } -} diff --git a/netbox/project-static/src/forms/index.ts b/netbox/project-static/src/forms/index.ts index 2c409dd76..1ef8540fd 100644 --- a/netbox/project-static/src/forms/index.ts +++ b/netbox/project-static/src/forms/index.ts @@ -1,17 +1,10 @@ -import { initFormActions } from './actions'; import { initFormElements } from './elements'; import { initSpeedSelector } from './speedSelector'; import { initScopeSelector } from './scopeSelector'; import { initVlanTags } from './vlanTags'; export function initForms(): void { - for (const func of [ - initFormActions, - initFormElements, - initSpeedSelector, - initScopeSelector, - initVlanTags, - ]) { + for (const func of [initFormElements, initSpeedSelector, initScopeSelector, initVlanTags]) { func(); } }