mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fix tooltip positioning
This commit is contained in:
parent
3580ebfd5c
commit
de96de5941
@ -736,11 +736,18 @@ Open private channel
|
|||||||
li.addClass 'privateChannel'
|
li.addClass 'privateChannel'
|
||||||
|
|
||||||
span = $ '<span class="userAvatar framed" />'
|
span = $ '<span class="userAvatar framed" />'
|
||||||
span.addClass 'jsTooltip'
|
|
||||||
span.attr 'title', userList.allTime[userID].username
|
|
||||||
|
|
||||||
li.append $(userList.allTime[userID].avatar[16]).wrap(span).parent().addClass 'small'
|
avatar = $ userList.allTime[userID].avatar[16]
|
||||||
li.append $(userList.allTime[userID].avatar[32]).wrap(span).parent().addClass 'large'
|
avatar.addClass 'jsTooltip'
|
||||||
|
avatar.attr 'title', userList.allTime[userID].username
|
||||||
|
avatar.wrap span
|
||||||
|
li.append avatar.parent().addClass 'small'
|
||||||
|
|
||||||
|
avatar = $ userList.allTime[userID].avatar[32]
|
||||||
|
avatar.addClass 'jsTooltip'
|
||||||
|
avatar.attr 'title', userList.allTime[userID].username
|
||||||
|
avatar.wrap span
|
||||||
|
li.append avatar.parent().addClass 'large'
|
||||||
|
|
||||||
$('#privateChannelsMenu ul').append li
|
$('#privateChannelsMenu ul').append li
|
||||||
|
|
||||||
|
@ -78,11 +78,11 @@
|
|||||||
<div id="privateChannelsMenu">
|
<div id="privateChannelsMenu">
|
||||||
<ul>
|
<ul>
|
||||||
<li id="privateChannel0" class="privateChannel active" data-private-channel-id="0">
|
<li id="privateChannel0" class="privateChannel active" data-private-channel-id="0">
|
||||||
<span class="userAvatar framed jsTooltip small" title="{lang}chat.general.room{/lang}">
|
<span class="userAvatar framed small">
|
||||||
<span class="icon icon16 icon-comment-alt"></span>
|
<span class="icon icon16 icon-comment-alt jsTooltip" title="{lang}chat.general.room{/lang}"></span>
|
||||||
</span>
|
</span>
|
||||||
<span class="userAvatar framed jsTooltip large" title="{lang}chat.general.room{/lang}">
|
<span class="userAvatar framed large">
|
||||||
<span class="icon icon32 icon-comment-alt"></span>
|
<span class="icon icon32 icon-comment-alt jsTooltip" title="{lang}chat.general.room{/lang}"></span>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user