mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Unbind 'click' later
This commit is contained in:
parent
6b10542737
commit
461be89d85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user