Skip to content

Node.js based forum software built for the modern web

removed the postbar selector from activeusers

Baris Soner Usakli3fe9bdc24cf5
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index 6383cac823..a83e0493ce 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -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');
}
}
});