From 63dfc38deacac8ca14500f2ec3bc7226920c684f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 15 Apr 2014 16:41:13 -0400 Subject: [PATCH] topic changes to match the new post-bar partial --- public/src/forum/topic.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 833255ead9..8c40689d82 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -153,13 +153,7 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools', function createUserIcon(uid, picture, userslug, username) { if(!$('.thread_active_users').find('[data-uid="' + uid + '"]').length) { - var div = $('
'); - div.find('a').tooltip({ - placement: 'top', - title: username - }); - - return div; + return $('
'); } } @@ -200,6 +194,10 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools', } } + activeEl.find('a[data-uid] img').tooltip({ + placement: 'top' + }); + var remainingUsers = data.users.length - 9; remainingUsers = remainingUsers < 0 ? 0 : remainingUsers; var anonymousCount = parseInt(data.anonymousCount, 10); @@ -714,7 +712,7 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools', socket.emit('topics.postcount', ajaxify.variables.get('topic_id'), function(err, postcount) { if(!err) { Topic.postCount = postcount; - $('#topic-post-count').html(Topic.postCount); + $('.topic-post-count').html(Topic.postCount); navigator.setCount(Topic.postCount); } });