From 10680d47b0c7ead5bd2bd9606b22af5514bde07a Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 18 Nov 2014 14:34:21 -0500 Subject: [PATCH] postCount only used once --- public/src/client/topic.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/src/client/topic.js b/public/src/client/topic.js index cd3963acff..367a5d04f0 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -32,8 +32,7 @@ define('forum/topic', [ locked: ajaxify.variables.get('locked'), deleted: ajaxify.variables.get('deleted'), pinned: ajaxify.variables.get('pinned') - }, - postCount = ajaxify.variables.get('postcount'); + }; $(window).trigger('action:topic.loading'); @@ -53,7 +52,7 @@ define('forum/topic', [ 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);