From 0565b7b8c81d0d35cb6acb2dbd7ea48946181b7f Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Wed, 23 Oct 2013 15:00:06 -0400 Subject: [PATCH] moved css out --- public/src/forum/topic.js | 8 +++----- public/templates/topic.tpl | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index e7bb1fe1bf..a9b70c7966 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -352,12 +352,11 @@ define(function() { socket.on('api:get_users_in_room', function(data) { if(data) { - var activeEl = $('#thread_active_users'); + var activeEl = $('.thread_active_users'); function createUserIcon(uid, picture, userslug, username) { if(!activeEl.find("[href='/user/"+ data.users[i].userslug + "']").length) { var userIcon = $(''); - userIcon.css('height', '24px'); var userLink = $('').append(userIcon); userLink.attr('data-uid', uid); @@ -406,11 +405,10 @@ define(function() { var remainingUsers = data.users.length - 9; remainingUsers = remainingUsers < 0 ? 0 : remainingUsers; var anonymousCount = parseInt(data.anonymousCount, 10); - activeEl.find('.anon').remove(); + activeEl.find('.anonymous-box').remove(); if(anonymousCount || remainingUsers) { - var anonLink = $(''); - anonLink.css('padding', '5px'); + var anonLink = $(''); activeEl.append(anonLink); var title = ''; diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index bd26d4f271..e09d94f9d0 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -18,7 +18,7 @@
  • {topic_name}
  • - +