Skip to content

Node.js based forum software built for the modern web

use post-count component

barisusakli188a48059067
diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.js
index 6296d47996..6adf07d13e 100644
--- a/public/src/client/topic/postTools.js
+++ b/public/src/client/topic/postTools.js
@@ -31,7 +31,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
PostTools.updatePostCount = function() {
socket.emit('topics.postcount', ajaxify.variables.get('topic_id'), function(err, postCount) {
if (!err) {
- var postCountEl = $('.topic-post-count');
+ var postCountEl = components.get('topic/post-count');
postCountEl.html(postCount).attr('title', postCount);
utils.makeNumbersHumanReadable(postCountEl);
navigator.setCount(postCount);