Rename `turbolinks:load` event to `turbo:load`
This commit is contained in:
parent
c7ca416e67
commit
f05abed6ef
|
@ -1,4 +1,4 @@
|
|||
$(document).on 'ready turbolinks:load', ->
|
||||
$(document).on 'ready turbo:load', ->
|
||||
if $('#pagination').length > 0
|
||||
$('#pagination').hide()
|
||||
loading_posts = false
|
||||
|
|
|
@ -18,12 +18,12 @@ start();
|
|||
document.addEventListener('DOMContentLoaded', initAnswerbox);
|
||||
document.addEventListener('DOMContentLoaded', initInbox);
|
||||
document.addEventListener('DOMContentLoaded', initUser);
|
||||
document.addEventListener('turbolinks:load', initSettings);
|
||||
document.addEventListener('turbo:load', initSettings);
|
||||
document.addEventListener('DOMContentLoaded', initLists);
|
||||
document.addEventListener('DOMContentLoaded', initQuestionbox);
|
||||
document.addEventListener('DOMContentLoaded', initQuestion);
|
||||
document.addEventListener('DOMContentLoaded', initModeration);
|
||||
document.addEventListener('DOMContentLoaded', initMemes);
|
||||
document.addEventListener('turbolinks:load', initAnnouncements);
|
||||
document.addEventListener('turbolinks:load', initLocales);
|
||||
document.addEventListener('turbolinks:load', initFront);
|
||||
document.addEventListener('turbo:load', initAnnouncements);
|
||||
document.addEventListener('turbo:load', initLocales);
|
||||
document.addEventListener('turbo:load', initFront);
|
|
@ -12,4 +12,4 @@ _ready = ->
|
|||
$('.dropdown-toggle').dropdown()
|
||||
|
||||
$(document).ready _ready
|
||||
$(document).on 'turbolinks:load', _ready
|
||||
$(document).on 'turbo:load', _ready
|
Loading…
Reference in New Issue