Resolve #408
This commit is contained in:
parent
681fc717c3
commit
7708cf1aca
|
|
@ -102,13 +102,13 @@ function formatUserlistItem(div) {
|
||||||
if (profile)
|
if (profile)
|
||||||
profile.remove();
|
profile.remove();
|
||||||
|
|
||||||
var top = ev.clientY + 5// - name.position().top;
|
var top = ev.clientY + 5;
|
||||||
var left = ev.clientX;
|
var horiz = ev.clientX;
|
||||||
profile = $("<div/>")
|
profile = $("<div/>")
|
||||||
.addClass("profile-box linewrap")
|
.addClass("profile-box linewrap")
|
||||||
.css("top", top + "px")
|
.css("top", top + "px")
|
||||||
.css("left", left + "px")
|
|
||||||
.appendTo(div);
|
.appendTo(div);
|
||||||
|
|
||||||
if(data.profile.image) {
|
if(data.profile.image) {
|
||||||
$("<img/>").addClass("profile-image")
|
$("<img/>").addClass("profile-image")
|
||||||
.attr("src", data.profile.image)
|
.attr("src", data.profile.image)
|
||||||
|
|
@ -127,12 +127,17 @@ function formatUserlistItem(div) {
|
||||||
}
|
}
|
||||||
$("<hr/>").css("margin-top", "5px").css("margin-bottom", "5px").appendTo(profile);
|
$("<hr/>").css("margin-top", "5px").css("margin-bottom", "5px").appendTo(profile);
|
||||||
$("<p/>").text(data.profile.text).appendTo(profile);
|
$("<p/>").text(data.profile.text).appendTo(profile);
|
||||||
|
|
||||||
|
if ($("body").hasClass("synchtube")) horiz -= profile.outerWidth();
|
||||||
|
profile.css("left", horiz + "px")
|
||||||
});
|
});
|
||||||
name.mousemove(function(ev) {
|
name.mousemove(function(ev) {
|
||||||
var top = ev.clientY + 5// - name.position().top;
|
var top = ev.clientY + 5;
|
||||||
var left = ev.clientX;
|
var horiz = ev.clientX;
|
||||||
profile.css("top", top + "px")
|
|
||||||
.css("left", left + "px")
|
if ($("body").hasClass("synchtube")) horiz -= profile.outerWidth();
|
||||||
|
profile.css("left", horiz + "px")
|
||||||
|
.css("top", top + "px");
|
||||||
});
|
});
|
||||||
name.mouseleave(function() {
|
name.mouseleave(function() {
|
||||||
profile.remove();
|
profile.remove();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue