mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user