(js) No 404 images with contacts chips

This commit is contained in:
Francis Lachapelle
2015-12-17 23:34:25 -05:00
parent f496f2b28f
commit 904c2f071a
3 changed files with 13 additions and 7 deletions
@@ -49,6 +49,8 @@
if (Preferences.defaults.SOGoContactsCategories) {
Card.$categories = Preferences.defaults.SOGoContactsCategories;
}
if (Preferences.defaults.SOGoAlternateAvatar)
Card.$alternateAvatar = Preferences.defaults.SOGoAlternateAvatar;
});
return Card; // return constructor
@@ -131,7 +133,7 @@
if (!this.$$email)
this.$$email = this.$preferredEmail(partial);
if (!this.$$image)
this.$$image = this.image || Card.$gravatar(this.$preferredEmail(partial), 32);
this.$$image = this.image || Card.$gravatar(this.$preferredEmail(partial), 32, Card.$alternateAvatar, {no_404: true});
this.selected = false;
// An empty attribute to trick md-autocomplete when adding attendees from the appointment editor