From: Joas Schilling Date: Fri, 13 Mar 2015 12:30:26 +0000 (+0100) Subject: Color avatars of non-existing users gray and display X instead X-Git-Tag: v8.1.0alpha1~288^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d71eb5670acdc0c94c01fbce945ad6c062f2e25;p=nextcloud-server.git Color avatars of non-existing users gray and display X instead --- diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 7c19cb321fe..74acaac7927 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -85,7 +85,9 @@ if (result.data && result.data.displayname) { $div.imageplaceholder(user, result.data.displayname); } else { - $div.imageplaceholder(user); + // User does not exist + $div.imageplaceholder(user, 'X'); + $div.css('background-color', '#b9b9b9'); } } else { $div.hide();