mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
closes #2037
This commit is contained in:
@@ -14,6 +14,10 @@ define('forum/infinitescroll', function() {
|
||||
callback = cb;
|
||||
topOffset = _topOffest || 0;
|
||||
$(window).off('scroll', onScroll).on('scroll', onScroll);
|
||||
|
||||
if ($(document).height() === $(window).height()) {
|
||||
callback(1);
|
||||
}
|
||||
};
|
||||
|
||||
function onScroll() {
|
||||
|
||||
Reference in New Issue
Block a user