mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #324
This commit is contained in:
@@ -75,8 +75,10 @@
|
||||
});
|
||||
|
||||
socket.on('api:user.isOnline', function(data) {
|
||||
$('#users-container').empty();
|
||||
startLoading('users:online', 0);
|
||||
if(active == 'online') {
|
||||
$('#users-container').empty();
|
||||
startLoading('users:online', 0);
|
||||
}
|
||||
});
|
||||
|
||||
function onUsersLoaded(users) {
|
||||
@@ -99,12 +101,12 @@
|
||||
}
|
||||
|
||||
if (set) {
|
||||
loadingMoreUsers = true;
|
||||
startLoading(set, $('#users-container').children().length);
|
||||
}
|
||||
}
|
||||
|
||||
function startLoading(set, after) {
|
||||
loadingMoreUsers = true;
|
||||
socket.emit('api:users.loadMore', {
|
||||
set: set,
|
||||
after: after
|
||||
|
||||
Reference in New Issue
Block a user