From b603e392e6440a5188fc05b21c5a96130f072847 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 28 Aug 2013 23:30:54 -0500 Subject: [PATCH] Add an extra check that might prevent stuck profile hovers --- www/assets/js/util.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")