From 3c6d39ab891a91b01499453a978c62bc5dc82add Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Mon, 1 Jul 2013 00:34:43 -0400 Subject: [PATCH] closes #45 --- public/src/forum/topic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index bfbef594cf..3df9563099 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -289,7 +289,9 @@ + ((anonymous > 0) ? (usercount > 0 ? ' and ': '') + anonymous + ' guest' + (anonymous > 1 ? 's are': ' is') : '') + (anonymous === 0 ? (usercount > 1 ? ' are' : ' is') : '') + ' browsing this thread'; - document.getElementById('thread_active_users').innerHTML = active; + var activeEl = $('#thread_active_users'); + if(activeEl.length) + activeEl.html(active); }); socket.on('event:rep_up', function(data) {