mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 03:46:25 -06:00
Correct errant file inclusion
This commit is contained in:
parent
8a42c72ca4
commit
baa4142f84
@ -1,18 +0,0 @@
|
||||
import { getElements } from '../util';
|
||||
import { Modal } from 'bootstrap';
|
||||
|
||||
export function initLaunchModal(): void {
|
||||
console.log('initLaunchModal()');
|
||||
const modal_element = document.getElementById('htmx-modal');
|
||||
if (modal_element == null) return;
|
||||
console.log('found modal element');
|
||||
const modal = new Modal(modal_element);
|
||||
console.log('created modal');
|
||||
|
||||
for (const launchButton of getElements<HTMLButtonElement>('button.launch-htmx-modal')) {
|
||||
console.log(`found button: {launchButton}`);
|
||||
launchButton.addEventListener('click', () => {
|
||||
modal.show();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user