pagination bootstrap update layout

This commit is contained in:
2014-08-21 16:29:29 +05:30
parent bfb4d54244
commit c87ce13045
20 changed files with 129 additions and 54 deletions

View File

@@ -0,0 +1,10 @@
jQuery ->
if $('#infinite-scrolling').size() > 0
$(window).on 'scroll', ->
more_posts_url = $('.pagination .next_page a').attr('href')
b=$(document).height() - $(window).height() - 60
if more_posts_url && $(window).scrollTop() > b
$('.pagination').html('<b> Loading...</b>')
$.getScript more_posts_url
return
return