mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
@@ -63,7 +63,7 @@ define('forum/topic', [
|
|||||||
|
|
||||||
handleKeys();
|
handleKeys();
|
||||||
|
|
||||||
navigator.init('[component="post/anchor"]', ajaxify.data.postcount, Topic.toTop, Topic.toBottom, Topic.navigatorCallback, Topic.calculateIndex);
|
navigator.init('[component="post"]', ajaxify.data.postcount, Topic.toTop, Topic.toBottom, Topic.navigatorCallback, Topic.calculateIndex);
|
||||||
|
|
||||||
handleBookmark(tid);
|
handleBookmark(tid);
|
||||||
|
|
||||||
|
|||||||
@@ -131,8 +131,8 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var atTop = scrollTop === 0 && parseInt(els.first().attr('data-index'), 10) === 0,
|
var atTop = scrollTop === 0 && parseInt(els.first().attr('data-index'), 10) === 0;
|
||||||
nearBottom = scrollTop + windowHeight > documentHeight - 100 && parseInt(els.last().attr('data-index'), 10) === count - 1;
|
var nearBottom = scrollTop + windowHeight > documentHeight - 100 && parseInt(els.last().attr('data-index'), 10) === count - 1;
|
||||||
|
|
||||||
if (atTop) {
|
if (atTop) {
|
||||||
index = 1;
|
index = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user