1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00
This commit is contained in:
jbtbnl 2014-01-28 18:31:12 +01:00 committed by jbtbnl
parent 04dc2c8a12
commit ecf8dc35e0

View File

@ -1591,7 +1591,8 @@ OC.Contacts = OC.Contacts || {};
Contact.prototype.setThumbnail = function($elem, refresh) {
if(!this.data.thumbnail && !refresh) {
this.getListItemElement().find('.avatar').css('height', '32px');
this.getListItemElement().find('.avatar').imageplaceholder(String(this.getDisplayName()) || '#');
var name = String(this.getDisplayName()).replace(' ', '').replace(',', '');
this.getListItemElement().find('.avatar').imageplaceholder(name || '#');
return;
}
if(!$elem) {