diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-11-20 13:43:12 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-11-24 08:21:59 -0200 |
commit | 4f484e4dd2a40c4b3c71cd3d241785fb3a7b2eaf (patch) | |
tree | 09d494d82ac812e87e45c1b1ccc6ff2693b49a62 /web-ui/app/js/mail_view/ui | |
parent | d4b29e22f51c986e4b8306f1782ef3603248d0d5 (diff) |
Adding contacts controller and basic contact search
Diffstat (limited to 'web-ui/app/js/mail_view/ui')
-rw-r--r-- | web-ui/app/js/mail_view/ui/recipients/recipients_input.js | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js index 8f647d01..78114a39 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js @@ -44,17 +44,7 @@ define([ self; var extractContactNames = function (response) { - return _.flatten(response.contacts, function (contact) { - var filterCriteria = contact.name ? - function (e) { - return { value: contact.name + ' <' + e + '>' }; - } : - function (e) { - return { value: e }; - }; - - return _.map(contact.addresses, filterCriteria); - }); + return _.map(response, function(a) { return { value: a } }); }; function createEmailCompleter() { @@ -70,9 +60,7 @@ define([ filter: extractContactNames } }); - if (features.isEnabled('contacts')) { - emailCompleter.initialize(); - } + emailCompleter.initialize(); return emailCompleter; } |