mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
use post-count component
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user