From: Coleman Watts Date: Tue, 18 Aug 2015 14:04:09 +0000 (-0400) Subject: JS cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=73ed0c3f281a7e8c43d29ae33ddf94ddb437eae2;p=civicrm-core.git JS cleanup --- 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); };