Toasts now work with turbo

This commit is contained in:
Jan Böhmer 2022-07-24 14:20:20 +02:00
parent 3df6e18a83
commit 390deca544
6 changed files with 57 additions and 41 deletions

View file

@ -12,7 +12,6 @@ import "bootstrap-fileinput";
const RegisterEventHelper = class {
constructor() {
this.registerToasts();
this.registerTooltips();
this.registerJumpToTopBtn();
@ -28,10 +27,6 @@ const RegisterEventHelper = class {
document.addEventListener('turbo:load', fn);
}
registerToasts() {
this.registerLoadHandler(() => $(".toast").toast('show'));
}
registerTooltips() {
this.registerLoadHandler(() => {
$(".tooltip").remove();