infinite scrolling for topics in category view, changed how topics are stored in categories, using sorted sets instead of sets now, if you update to this commit run node app --upgrade to upgrade the redis schema, #141

This commit is contained in:
Baris Soner Usakli
2013-08-09 20:03:19 -04:00
parent 04e0d075ec
commit 1cc8214d16
9 changed files with 186 additions and 61 deletions

View File

@@ -201,9 +201,8 @@
}, false);
// Infinite scrolling of posts
$(window).off('scroll');
$(window).on('scroll', function() {
var windowHeight = document.body.offsetHeight - $(window).height(),
$(window).off('scroll').on('scroll', function() {
var windowHeight = document.body.offsetHeight - $(window).height(),
half = windowHeight / 2;
if (document.body.scrollTop > half && !app.infiniteLoaderActive && $('#post-container').children().length) {