Skip to content

Commit

Permalink
No support for adding group to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 6, 2015
1 parent 54ebbc8 commit 0e73cf2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion imp/js/core.js
Expand Up @@ -447,9 +447,15 @@ var ImpCore = {
tmp2 = e.element().retrieve('email');
tmp.hide().childElements().invoke('remove');

if (!tmp2) {
break;
}

// Add e-mail info to context menu if personal name is shown on
// page.
if (tmp2 && !tmp2.g) {
if (tmp2.g) {
$('ctx_contacts_addfilter').hide();
} else {
this.doAction('getContactsImage', {
addr: tmp2.b
}, {
Expand All @@ -470,6 +476,8 @@ var ImpCore = {
}
});

$('ctx_contacts_addfilter').show();

if (tmp2.p) {
tmp.show().insert({ top: new Element('DIV', { className: 'sep' }) })
.insert({ top: new Element('DIV', { className: 'contactAddr' }).insert(tmp2.b.escapeHTML()) });
Expand Down

0 comments on commit 0e73cf2

Please sign in to comment.