forked from bofh/fetsite
blue2
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
$ ->
|
||||
if $('#infinite-scrolling').size() > 0
|
||||
more_posts_url = $('.pagination .next_page a').attr('href')
|
||||
b=$(document).height() - $(window).height() - 60
|
||||
b=$(document).height() - $(window).height() - 260
|
||||
if more_posts_url && $(window).scrollTop() > b
|
||||
$('.pagination').html('<b> Loading...</b>')
|
||||
$.getScript more_posts_url
|
||||
$(window).on 'scroll', ->
|
||||
more_posts_url = $('.pagination .next_page a').attr('href')
|
||||
b=$(document).height() - $(window).height() - 60
|
||||
b=$(document).height() - $(window).height() - 260
|
||||
if more_posts_url && $(window).scrollTop() > b
|
||||
$('.pagination').html('<b> Loading...</b>')
|
||||
$.getScript more_posts_url
|
||||
|
||||
Reference in New Issue
Block a user