From dacda65961d864884efecd732a94d37250bb0fc5 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 19 Oct 2015 20:28:33 -0700 Subject: [PATCH] Prevent unnecessary duplicate profile boxes --- www/js/util.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/www/js/util.js b/www/js/util.js index 38994699..899b5a6c 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -107,6 +107,15 @@ function formatUserlistItem(div) { } var profile = null; + /* + * 2015-10-19 + * Prevent rendering unnecessary duplicates of the profile box when + * a user's status changes. + */ + name.unbind("mouseenter"); + name.unbind("mousemove"); + name.unbind("mouseleave"); + name.mouseenter(function(ev) { if (profile) profile.remove();