diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index 7e90398..9c16513 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -220,6 +220,8 @@ TimWolla.WCF ?= {} success: $.proxy((data, textStatus, jqXHR) -> $('#chatRoomList li').remove() $('#toggleRooms a').removeClass 'ajaxLoad' + $('#toggleRooms .badge').text(data.length); + for room in data li = $ '
' li.addClass 'activeMenuItem' if room.active diff --git a/template/chat.tpl b/template/chat.tpl index 6436d19..7877cf3 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -79,8 +79,8 @@