votes: fix username tooltips not appearing inside other tooltips.

Fix a bug where, when hovering over a username inside a tooltip, the
username tooltip wouldn't appear.

May break 0bf5ac73?
This commit is contained in:
evazion
2021-11-24 23:57:48 -06:00
parent a45e6b5cfe
commit 5ba6014a4e
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ UserTooltip.DURATION = 250;
UserTooltip.MAX_WIDTH = 600;
UserTooltip.initialize = function () {
delegate("#page", {
delegate("body", {
allowHTML: true,
appendTo: document.querySelector("#user-tooltips"),
delay: [UserTooltip.SHOW_DELAY, UserTooltip.HIDE_DELAY],

View File

@@ -99,11 +99,12 @@
</div>
<div id="tooltips">
<%# Order matters here; items at the bottom of the list appear on top of earlier items %>
<div id="post-tooltips"></div>
<div id="user-tooltips"></div>
<div id="comment-votes-tooltips"></div>
<div id="post-votes-tooltips"></div>
<div id="post-favorites-tooltips"></div>
<div id="user-tooltips"></div>
<div id="popup-menus"></div>
</div>