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:
parent
c99c707eda
commit
16ad55c07d
@ -572,6 +572,7 @@ Remove all users that left the chat.
|
|||||||
$('.timsChatUser').each ->
|
$('.timsChatUser').each ->
|
||||||
unless foundUsers[$(@).attr('id')]?
|
unless foundUsers[$(@).attr('id')]?
|
||||||
console.log "Removing User: '#{$(@).data('username')}'"
|
console.log "Removing User: '#{$(@).data('username')}'"
|
||||||
|
WCF.Dropdown.removeDropdown $(@).attr 'id'
|
||||||
do $(@).remove
|
do $(@).remove
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user