Node.js based forum software built for the modern web
moved addActiveUser code to widget-essentials
psychobunnyfa4555e26e2d
diff --git a/public/src/forum/category.js b/public/src/forum/category.jsindex faf2375095..810adaa78f 100644--- a/public/src/forum/category.js+++ b/public/src/forum/category.js@@ -83,8 +83,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {topic.hide().fadeIn('slow');- addActiveUser(data);-socket.emit('categories.getPageCount', templates.get('category_id'), function(err, newPageCount) {pagination.recreatePaginationLinks(newPageCount);});@@ -94,21 +92,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {});}- function addActiveUser(data) {- var activeUser = $('.category-sidebar .active-users').find('a[data-uid="' + data.uid + '"]');- if(!activeUser.length) {- var newUser = templates.prepare(templates['category'].blocks['active_users']).parse({- active_users: [{- uid: data.uid,- username: data.username,- userslug: data.userslug,- picture: data.teaser_userpicture- }]- });- $(newUser).appendTo($('.category-sidebar .active-users'));- }- }-Category.onTopicsLoaded = function(topics) {var html = templates.prepare(templates['category'].blocks['topics']).parse({topics: topics