|
|
@ -92,6 +92,8 @@ define(function() {
|
|
|
|
socket.on('user.anonConnect', updateAnonCount)
|
|
|
|
socket.on('user.anonConnect', updateAnonCount)
|
|
|
|
|
|
|
|
|
|
|
|
function updateAnonCount() {
|
|
|
|
function updateAnonCount() {
|
|
|
|
|
|
|
|
var section = getActiveSection();
|
|
|
|
|
|
|
|
if((section.indexOf('online') === 0 || section.indexOf('users') === 0) && !loadingMoreUsers) {
|
|
|
|
socket.emit('user.getOnlineAnonCount', {} , function(err, anonCount) {
|
|
|
|
socket.emit('user.getOnlineAnonCount', {} , function(err, anonCount) {
|
|
|
|
|
|
|
|
|
|
|
|
if(parseInt(anonCount, 10) > 0) {
|
|
|
|
if(parseInt(anonCount, 10) > 0) {
|
|
|
@ -102,6 +104,7 @@ define(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function onUsersLoaded(users, emptyContainer) {
|
|
|
|
function onUsersLoaded(users, emptyContainer) {
|
|
|
|
var html = templates.prepare(templates['users'].blocks['users']).parse({
|
|
|
|
var html = templates.prepare(templates['users'].blocks['users']).parse({
|
|
|
|