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

Adding .userLink to users

This commit is contained in:
Tim Düsterhus 2012-08-08 00:11:55 +02:00
parent ec8eba6986
commit 65430ac26e

View File

@ -369,6 +369,9 @@ window.console ?=
li.attr 'title', user.awayStatus li.attr 'title', user.awayStatus
li.data 'username', user.username li.data 'username', user.username
a = $ '<a href="javascript:;">' + WCF.String.escapeHTML(user.username) + '</a>' a = $ '<a href="javascript:;">' + WCF.String.escapeHTML(user.username) + '</a>'
a.addClass 'userLink'
a.data 'userID', user.userID
a.click $.proxy (event) -> a.click $.proxy (event) ->
event.preventDefault() event.preventDefault()
@toggleUserMenu $ event.target @toggleUserMenu $ event.target