Commit 7eba5201f669f00c089e44847c05dd128b3e9c46

Authored by Victor Costa
Committed by Rodrigo Souto
1 parent c32e9323

Fix friends counter in chat

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
public/javascripts/chat.js
@@ -165,9 +165,8 @@ jQuery(function($) { @@ -165,9 +165,8 @@ jQuery(function($) {
165 }, 165 },
166 166
167 update_chat_title: function () { 167 update_chat_title: function () {
168 - var friends_online = $('#buddy-list .buddy-list li:visible').length; 168 + var friends_online = $('#buddy-list .buddy-list li.chat').length;
169 $('#friends-online').text(friends_online); 169 $('#friends-online').text(friends_online);
170 - document.title = $('#title-bar .title').text();  
171 }, 170 },
172 171
173 on_connect: function (status) { 172 on_connect: function (status) {