From ecf8dc35e0815fc554ab1717908bec8f8519eade Mon Sep 17 00:00:00 2001 From: jbtbnl Date: Tue, 28 Jan 2014 18:31:12 +0100 Subject: [PATCH] Fixes #384. --- js/contacts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/contacts.js b/js/contacts.js index c26b31ca..73d320e4 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -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) {