Don't do an email address hover in addressbook - they're already a contact if they're in addressbook

This commit is contained in:
Nathan Gray 2014-04-07 16:18:56 +00:00
parent e64f6979af
commit 0f94764857

View File

@ -336,9 +336,14 @@ et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]);
// Bind a mouseenter event once for every read-only email // Bind a mouseenter event once for every read-only email
$j(function() { $j(function() {
// If user doesn't have access to addressbook, stop
if(!egw.app('addressbook')) return; if(!egw.app('addressbook')) return;
$j('body').on('mouseenter', 'a.et2_email', function() { $j('body').on('mouseenter', 'a.et2_email', function() {
// Disabled for addressbook links - no point, they'd already be a contact
if(this.id.indexOf('addressbook-') === 0) return;
$j(this).tooltip({ $j(this).tooltip({
items: 'a.et2_email', items: 'a.et2_email',
position: {my:"left top", at:"left bottom", collision:"flipfit"}, position: {my:"left top", at:"left bottom", collision:"flipfit"},