From 461be89d85d5fd18384f17601b22793e82b1e2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 26 Dec 2011 17:26:47 +0100 Subject: [PATCH] Unbind 'click' later --- file/js/TimWolla.WCF.Chat.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index f706c03..81842b9 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -179,13 +179,13 @@ TimWolla.WCF ?= {} # Refreshes the room-list. ### refreshRoomList: () -> - $('.chatRoom').unbind 'click' $('#toggleRooms a').addClass 'ajaxLoad' $.ajax $('#toggleRooms a').data('refreshUrl'), dataType: 'json' type: 'POST' success: $.proxy((data, textStatus, jqXHR) -> + $('.chatRoom').unbind 'click' $('#chatRoomList li').remove() $('#toggleRooms a').removeClass 'ajaxLoad' for room in data