add bootstrap import to main file and use proper turbolinks event

This commit is contained in:
Andreas Nedbal 2021-02-26 22:41:46 +01:00
parent 17a177cc4b
commit 3dc7bc9567
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +0,0 @@
import 'popper.js'
import 'bootstrap'
$(document).ready ->
$('.dropdown-toggle').dropdown()

View File

@ -2,8 +2,9 @@ import 'core-js/stable'
import 'regenerator-runtime/runtime' import 'regenerator-runtime/runtime'
import '../legacy/jquery' import '../legacy/jquery'
import 'bootstrap'
import {} from 'jquery-ujs' import {} from 'jquery-ujs'
import 'popper.js'
import 'bootstrap'
import 'jquery.guillotine' import 'jquery.guillotine'
import 'particleground/jquery.particleground.min' import 'particleground/jquery.particleground.min'
import 'jquery.growl' import 'jquery.growl'
@ -84,4 +85,7 @@ _ready = ->
$(document).ready _ready $(document).ready _ready
$(document).on 'page:load', _ready $(document).on 'turbolinks:load', _ready
$(document).on 'turbolinks:render', ->
$('.dropdown-toggle').dropdown()