Skip to content

Commit

Permalink
Revert "CATL-1446: Add Email Links to Contact Card"
Browse files Browse the repository at this point in the history
This reverts commit d72bc69.
  • Loading branch information
reneolivo committed Jul 10, 2020
1 parent 5c0441b commit 5226bec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
12 changes: 0 additions & 12 deletions CRM/Core/BAO/UFGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1268,18 +1268,6 @@ public static function getValues(
}
$params[$index] = $details->$detailName;
}
elseif ($fieldName == 'email') {
$detailId = $detailName . '_id';
$emailId = $details->$detailId;
$emailPopupUrl = CRM_Utils_System::url('civicrm/activity/email/add', [
'action' => 'add',
'reset' => '1',
'cid' => $cid,
'email_id' => $emailId,
], TRUE);
$values[$index] = '<a class="crm-popup" href="' . $emailPopupUrl . '">' .
$details->$detailName . '</a>';
}
else {
$values[$index] = $params[$index] = $details->$detailName;
}
Expand Down
11 changes: 2 additions & 9 deletions js/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,6 @@ if (!CRM.vars) CRM.vars = {};
};

$.fn.crmtooltip = function () {
var TOOLTIP_HIDE_DELAY = 300;

$(document)
.on('mouseover', 'a.crm-summary-link:not(.crm-processed)', function (e) {
$(this).addClass('crm-processed crm-tooltip-active');
Expand All @@ -1043,13 +1041,8 @@ if (!CRM.vars) CRM.vars = {};
.load(this.href);
}
})
.on('mouseleave', 'a.crm-summary-link', function () {
var tooltipLink = $(this);
setTimeout(function () {
if (tooltipLink.filter(':hover').length === 0) {
tooltipLink.removeClass('crm-processed crm-tooltip-active crm-tooltip-down');
}
}, TOOLTIP_HIDE_DELAY);
.on('mouseout', 'a.crm-summary-link', function () {
$(this).removeClass('crm-processed crm-tooltip-active crm-tooltip-down');
})
.on('click', 'a.crm-summary-link', false);
};
Expand Down

0 comments on commit 5226bec

Please sign in to comment.