Rename `turbolinks:load` event to `turbo:load`

This commit is contained in:
Andreas Nedbal 2022-09-04 14:34:40 +02:00 committed by Andreas Nedbal
parent c7ca416e67
commit f05abed6ef
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
$(document).on 'ready turbolinks:load', ->
$(document).on 'ready turbo:load', ->
if $('#pagination').length > 0
$('#pagination').hide()
loading_posts = false

View File

@ -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);

View File

@ -12,4 +12,4 @@ _ready = ->
$('.dropdown-toggle').dropdown()
$(document).ready _ready
$(document).on 'turbolinks:load', _ready
$(document).on 'turbo:load', _ready