diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-13 13:30:26 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-13 15:29:52 +0100 |
commit | 5d71eb5670acdc0c94c01fbce945ad6c062f2e25 (patch) | |
tree | b62940242fd36ee98fd2e3f0cfd36f6bd5b612ca | |
parent | 61ec37431ac98d812a0ef95cc4bb86d6c2d558f5 (diff) | |
download | nextcloud-server-5d71eb5670acdc0c94c01fbce945ad6c062f2e25.tar.gz nextcloud-server-5d71eb5670acdc0c94c01fbce945ad6c062f2e25.zip |
Color avatars of non-existing users gray and display X instead
-rw-r--r-- | core/js/jquery.avatar.js | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |