|
|
@@ -2,9 +2,10 @@ import { getElements, isTruthy } from './util';
|
|
|
import { initButtons } from './buttons';
|
|
|
import { initSelect } from './select';
|
|
|
import { initObjectSelector } from './objectSelector';
|
|
|
+import { initBootstrap } from './bs';
|
|
|
|
|
|
function initDepedencies(): void {
|
|
|
- for (const init of [initButtons, initSelect, initObjectSelector]) {
|
|
|
+ for (const init of [initButtons, initSelect, initObjectSelector, initBootstrap]) {
|
|
|
init();
|
|
|
}
|
|
|
}
|
|
|
@@ -22,4 +23,8 @@ export function initHtmx(): void {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ for (const element of getElements('[hx-trigger=load]')) {
|
|
|
+ element.addEventListener('htmx:afterSettle', initDepedencies);
|
|
|
+ }
|
|
|
}
|