mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
moved populateOnline users out of app.js
This commit is contained in:
@@ -10,10 +10,11 @@ var dependencies = [
|
||||
'forum/topic/postTools',
|
||||
'forum/topic/events',
|
||||
'forum/topic/scrollTo',
|
||||
'forum/topic/browsing',
|
||||
'navigator'
|
||||
];
|
||||
|
||||
define('forum/topic', dependencies, function(pagination, infinitescroll, threadTools, postTools, events, scrollTo, navigator) {
|
||||
define('forum/topic', dependencies, function(pagination, infinitescroll, threadTools, postTools, events, scrollTo, browsing, navigator) {
|
||||
var Topic = {},
|
||||
currentUrl = '';
|
||||
|
||||
@@ -42,6 +43,9 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadT
|
||||
|
||||
app.enterRoom('topic_' + tid);
|
||||
|
||||
browsing.populateOnlineUsers();
|
||||
$('.post-content img').addClass('img-responsive');
|
||||
|
||||
showBottomPostBar();
|
||||
|
||||
postTools.init(tid, thread_state);
|
||||
@@ -317,7 +321,7 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadT
|
||||
getPostPrivileges(posts[x].pid);
|
||||
}
|
||||
|
||||
app.populateOnlineUsers();
|
||||
browsing.populateOnlineUsers();
|
||||
app.createUserTooltips();
|
||||
app.replaceSelfLinks(html.find('a'));
|
||||
utils.addCommasToNumbers(html.find('.formatted-number'));
|
||||
|
||||
Reference in New Issue
Block a user