Skip to content
Snippets Groups Projects
Commit 2c29c2ac authored by Ravish Nair's avatar Ravish Nair
Browse files

-- fix for CRM-13450

----------------------------------------
* CRM-13450: enhanced logging detail overlay broken
  http://issues.civicrm.org/jira/browse/CRM-13450
parent 3a2f6ff5
No related branches found
No related tags found
No related merge requests found
......@@ -596,9 +596,9 @@ CRM.validate = CRM.validate || {
});
$.fn.crmtooltip = function () {
$('a.crm-summary-link:not(.crm-processed)')
.addClass('crm-processed')
.on('mouseover', function (e) {
$(document)
.on('mouseover', 'a.crm-summary-link:not(.crm-processed)', function (e) {
$(this).addClass('crm-processed');
$(this).addClass('crm-tooltip-active');
var topDistance = e.pageY - $(window).scrollTop();
if (topDistance < 300 | topDistance < $(this).children('.crm-tooltip-wrapper').height()) {
......@@ -611,10 +611,11 @@ CRM.validate = CRM.validate || {
.load(this.href);
}
})
.on('mouseout', function () {
.on('mouseout', 'a.crm-summary-link', function () {
$(this).removeClass('crm-processed');
$(this).removeClass('crm-tooltip-active crm-tooltip-down');
})
.on('click', false);
.on('click', 'a.crm-summary-link', false);
};
var h;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment