mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-23 07:53:00 +01:00
topic changes to match the new post-bar partial
This commit is contained in:
@@ -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 class="inline-block"><a data-uid="' + uid + '" href="' + RELATIVE_PATH + '/user/' + userslug + '"><img src="'+ picture +'"/></a></div>');
|
||||
div.find('a').tooltip({
|
||||
placement: 'top',
|
||||
title: username
|
||||
});
|
||||
|
||||
return div;
|
||||
return $('<div class="inline-block"><a data-uid="' + uid + '" href="' + RELATIVE_PATH + '/user/' + userslug + '"><img title="' + username + '" src="'+ picture +'"/></a></div>');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user