From 73ed0c3f281a7e8c43d29ae33ddf94ddb437eae2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 18 Aug 2015 10:04:09 -0400 Subject: [PATCH] JS cleanup --- js/Common.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/Common.js b/js/Common.js index d84b3fecd7..405e6b483b 100644 --- a/js/Common.js +++ b/js/Common.js @@ -945,8 +945,7 @@ if (!CRM.vars) CRM.vars = {}; $.fn.crmtooltip = function () { $(document) .on('mouseover', 'a.crm-summary-link:not(.crm-processed)', function (e) { - $(this).addClass('crm-processed'); - $(this).addClass('crm-tooltip-active'); + $(this).addClass('crm-processed crm-tooltip-active'); var topDistance = e.pageY - $(window).scrollTop(); if (topDistance < 300 || topDistance < $(this).children('.crm-tooltip-wrapper').height()) { $(this).addClass('crm-tooltip-down'); @@ -959,8 +958,7 @@ if (!CRM.vars) CRM.vars = {}; } }) .on('mouseout', 'a.crm-summary-link', function () { - $(this).removeClass('crm-processed'); - $(this).removeClass('crm-tooltip-active crm-tooltip-down'); + $(this).removeClass('crm-processed crm-tooltip-active crm-tooltip-down'); }) .on('click', 'a.crm-summary-link', false); }; -- 2.25.1