mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-10 12:59:49 +00:00
(js) Decompose contacts list in mail editor
This commit is contained in:
@@ -271,11 +271,11 @@
|
||||
* @returns the fullname along with a matching email address in parentheses
|
||||
*/
|
||||
Card.prototype.$shortFormat = function(partial) {
|
||||
var fullname = this.$fullname(),
|
||||
var fullname = [this.$$fullname],
|
||||
email = this.$preferredEmail(partial);
|
||||
if (email && email != fullname)
|
||||
fullname += ' <' + email + '>';
|
||||
return fullname;
|
||||
if (email && email != this.$$fullname)
|
||||
fullname.push(' <' + email + '>');
|
||||
return fullname.join(' ');
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user