Merge branch 'socketAL-fix' of https://github.com/designcreateplay/NodeBB into socketAL-fix

v1.18.x
Baris Soner Usakli 11 years ago
commit 2515ba9455

@ -25,7 +25,7 @@ define(function() {
for (var room in data) {
if (room !== '') {
var count = data[room].length;
var count = $(data[room]).length;
total += count;
active_users.innerHTML = active_users.innerHTML + "<div class='alert alert-success'><strong>" + room + "</strong> " + count + " active user" + (count > 1 ? "s" : "") + "</div>";
}

@ -95,7 +95,7 @@ SocketMeta.rooms.enter = function(socket, data) {
module.parent.exports.updateRoomBrowsingText(data.enter);
if (data.enter != 'admin') {
server.in('admin').emit('event:meta.rooms.update', server.rooms);
server.in('admin').emit('event:meta.rooms.update', null, server.rooms);
}
};

Loading…
Cancel
Save