removed the postbar selector from activeusers

v1.18.x
Baris Soner Usakli 11 years ago
parent 4a1513eabf
commit 3fe9bdc24c

@ -622,7 +622,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
socket.on('get_users_in_room', function(data) {
if(data && data.room.indexOf('topic') !== -1) {
var activeEl = $('li.post-bar[data-index="0"] .thread_active_users');
var activeEl = $('.thread_active_users');
function createUserIcon(uid, picture, userslug, username) {
if(!activeEl.find('[data-uid="' + uid + '"]').length) {
@ -694,11 +694,9 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
// Get users who are currently replying to the topic entered
socket.emit('modules.composer.getUsersByTid', templates.get('topic_id'), function(err, uids) {
var activeUsersEl = $('.thread_active_users'),
x;
if (uids && uids.length) {
for(var x=0;x<uids.length;x++) {
activeUsersEl.find('[data-uid="' + uids[x] + '"]').addClass('replying');
activeEl.find('[data-uid="' + uids[x] + '"]').addClass('replying');
}
}
});

Loading…
Cancel
Save