Commit 7eba5201f669f00c089e44847c05dd128b3e9c46
Committed by
Rodrigo Souto
1 parent
c32e9323
Exists in
master
and in
27 other branches
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 | 165 | }, |
| 166 | 166 | |
| 167 | 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 | 169 | $('#friends-online').text(friends_online); |
| 170 | - document.title = $('#title-bar .title').text(); | |
| 171 | 170 | }, |
| 172 | 171 | |
| 173 | 172 | on_connect: function (status) { | ... | ... |