aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-13 13:30:26 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-13 15:29:52 +0100
commit5d71eb5670acdc0c94c01fbce945ad6c062f2e25 (patch)
treeb62940242fd36ee98fd2e3f0cfd36f6bd5b612ca
parent61ec37431ac98d812a0ef95cc4bb86d6c2d558f5 (diff)
downloadnextcloud-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.js4
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();