提交 45f9cca9 编写于 作者: D Dmitriy Zaporozhets

Unbind document scroll on page:fetch to disable endlessScroll on pages where it is not used

上级 98cf0ae3
......@@ -50,7 +50,11 @@ window.startSpinner = ->
window.stopSpinner = ->
$('.turbolink-spinner').fadeOut()
window.stopEndlessScroll = ->
$(document).unbind('scroll')
document.addEventListener("page:fetch", startSpinner)
document.addEventListener("page:fetch", stopEndlessScroll)
document.addEventListener("page:receive", stopSpinner)
$ ->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册