From df6659365ba6218f8436c3447c6577805d0b486e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 15 Apr 2012 13:00:16 +0200 Subject: [PATCH] Properly refresh the badges. --- file/js/be.bastelstu.WCF.Chat.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index a994e44..e93082e 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -356,7 +356,7 @@ consoleMock ?= $(@).remove(); - $('#toggleUsers .wcf-badge').text(users.length); + $('#toggleUsers .badge').text(users.length); ### # Inserts text into our input. # @@ -413,7 +413,7 @@ consoleMock ?= success: $.proxy((data, textStatus, jqXHR) -> $('#timsChatRoomList li').remove() $('#toggleRooms a').removeClass 'ajaxLoad' - $('#toggleRooms .wcf-badge').text data.length + $('#toggleRooms .badge').text data.length for room in data li = $ '
  • '