1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix dropdown error when no menu exists for a user

Closes #66
This commit is contained in:
Tim Düsterhus 2013-11-19 21:29:12 +01:00
parent 008f20e2b6
commit 7468aa342e

View File

@ -534,7 +534,6 @@ Build HTML of the user and insert it into the list, if the users was not found i
li.attr 'id', id
li.addClass 'timsChatUser'
li.addClass 'jsTooltip'
li.addClass 'dropdown'
li.addClass 'you' if user.userID is WCF.User.userID
li.addClass 'suspended' if user.suspended
if user.awayStatus?
@ -556,7 +555,8 @@ Build HTML of the user and insert it into the list, if the users was not found i
if menu.find('li').length
li.append menu
menu.addClass 'dropdownMenu'
li.addClass 'dropdown'
li.appendTo $ '#timsChatUserList > ul'
foundUsers[id] = true