mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Fixes #384.
This commit is contained in:
parent
04dc2c8a12
commit
ecf8dc35e0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user