add bootstrap import to main file and use proper turbolinks event
This commit is contained in:
parent
17a177cc4b
commit
3dc7bc9567
|
@ -1,5 +0,0 @@
|
||||||
import 'popper.js'
|
|
||||||
import 'bootstrap'
|
|
||||||
|
|
||||||
$(document).ready ->
|
|
||||||
$('.dropdown-toggle').dropdown()
|
|
|
@ -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()
|
Loading…
Reference in New Issue