diff --git a/www/assets/js/util.js b/www/assets/js/util.js index e3015986..389554d5 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -84,8 +84,11 @@ function formatUserlistItem(div, data) { name.addClass(getNameColor(data.rank)); div.find(".profile-box").remove(); - var profile; + var profile = null; name.mouseenter(function(ev) { + if (profile) + profile.remove(); + profile = $("
") .addClass("profile-box") .css("top", (ev.pageY + 5) + "px")