mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-16 18:58:50 +00:00
Improve contact list auto-completion
This commit is contained in:
@@ -115,10 +115,12 @@
|
||||
Card.prototype.init = function(data, partial) {
|
||||
this.refs = [];
|
||||
angular.extend(this, data);
|
||||
if (!this.shortFormat)
|
||||
this.shortFormat = this.$shortFormat();
|
||||
if (!this.image)
|
||||
this.image = Card.$gravatar(this.$preferredEmail(partial), 32);
|
||||
if (!this.$$fullname)
|
||||
this.$$fullname = this.$fullname();
|
||||
if (!this.$$email)
|
||||
this.$$email = this.$preferredEmail();
|
||||
if (!this.$$image)
|
||||
this.$$image = this.image || Card.$gravatar(this.$preferredEmail(partial), 32);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user