1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Properly refresh the badges.

This commit is contained in:
Tim Düsterhus 2012-04-15 13:00:16 +02:00
parent d1004087e5
commit df6659365b

View File

@ -356,7 +356,7 @@ consoleMock ?=
$(@).remove(); $(@).remove();
$('#toggleUsers .wcf-badge').text(users.length); $('#toggleUsers .badge').text(users.length);
### ###
# Inserts text into our input. # Inserts text into our input.
# #
@ -413,7 +413,7 @@ consoleMock ?=
success: $.proxy((data, textStatus, jqXHR) -> success: $.proxy((data, textStatus, jqXHR) ->
$('#timsChatRoomList li').remove() $('#timsChatRoomList li').remove()
$('#toggleRooms a').removeClass 'ajaxLoad' $('#toggleRooms a').removeClass 'ajaxLoad'
$('#toggleRooms .wcf-badge').text data.length $('#toggleRooms .badge').text data.length
for room in data for room in data
li = $ '<li></li>' li = $ '<li></li>'