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

Remove dropdown from DOM when user leaves the room

This commit is contained in:
Maximilian Mader 2013-08-06 20:48:28 +02:00
parent c99c707eda
commit 16ad55c07d

View File

@ -572,6 +572,7 @@ Remove all users that left the chat.
$('.timsChatUser').each ->
unless foundUsers[$(@).attr('id')]?
console.log "Removing User: '#{$(@).data('username')}'"
WCF.Dropdown.removeDropdown $(@).attr 'id'
do $(@).remove