From 9fb007661e02d31530f866c9caacd1c2695ac231 Mon Sep 17 00:00:00 2001 From: Gildo Fiorito Date: Sat, 13 Feb 2016 10:24:47 +0100 Subject: [PATCH] updates for turbolinks 5 --- app/assets/javascripts/jquery.infinite-pages.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/jquery.infinite-pages.js.coffee b/app/assets/javascripts/jquery.infinite-pages.js.coffee index cc04abc..351e045 100644 --- a/app/assets/javascripts/jquery.infinite-pages.js.coffee +++ b/app/assets/javascripts/jquery.infinite-pages.js.coffee @@ -52,7 +52,7 @@ Released under the MIT License @$container.attr('data-jquery-infinite-pages-container', @instanceId) # Setup the callback to handle turbolinks page loads - $(window.document).on("page:change", => @_recache()) + $(window.document).on("turbolinks:load", => @_recache()) # Internal helper for logging messages _log: (msg) ->