mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
postCount only used once
This commit is contained in:
@@ -32,8 +32,7 @@ define('forum/topic', [
|
|||||||
locked: ajaxify.variables.get('locked'),
|
locked: ajaxify.variables.get('locked'),
|
||||||
deleted: ajaxify.variables.get('deleted'),
|
deleted: ajaxify.variables.get('deleted'),
|
||||||
pinned: ajaxify.variables.get('pinned')
|
pinned: ajaxify.variables.get('pinned')
|
||||||
},
|
};
|
||||||
postCount = ajaxify.variables.get('postcount');
|
|
||||||
|
|
||||||
$(window).trigger('action:topic.loading');
|
$(window).trigger('action:topic.loading');
|
||||||
|
|
||||||
@@ -53,7 +52,7 @@ define('forum/topic', [
|
|||||||
|
|
||||||
handleBookmark(tid);
|
handleBookmark(tid);
|
||||||
|
|
||||||
navigator.init('.posts > .post-row', postCount, Topic.toTop, Topic.toBottom, Topic.navigatorCallback, Topic.calculateIndex);
|
navigator.init('.posts > .post-row', ajaxify.variables.get('postcount'), Topic.toTop, Topic.toBottom, Topic.navigatorCallback, Topic.calculateIndex);
|
||||||
|
|
||||||
$(window).on('scroll', updateTopicTitle);
|
$(window).on('scroll', updateTopicTitle);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user