mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
fix: tiny fix for IS when page is empty
related 4aad601967
https://github.com/NodeBB/NodeBB/pull/9525
This commit is contained in:
@@ -21,7 +21,7 @@ define('forum/infinitescroll', ['hooks', 'alerts', 'api'], function (hooks, aler
|
|||||||
previousScrollTop = $(window).scrollTop();
|
previousScrollTop = $(window).scrollTop();
|
||||||
$(window).off('scroll', startScrollTimeout).on('scroll', startScrollTimeout);
|
$(window).off('scroll', startScrollTimeout).on('scroll', startScrollTimeout);
|
||||||
if ($body.height() <= $(window).height() && (
|
if ($body.height() <= $(window).height() && (
|
||||||
!ajaxify.data.hasOwnProperty('pageCount') || ajaxify.data.pageCount > 1
|
ajaxify.data.pagination || ajaxify.data.pagination.pageCount > 1
|
||||||
)) {
|
)) {
|
||||||
callback(1);
|
callback(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user