Color avatars of non-existing users gray and display X instead

This commit is contained in:
Joas Schilling 2015-03-13 13:30:26 +01:00
parent 61ec37431a
commit 5d71eb5670
1 changed files with 3 additions and 1 deletions

View File

@ -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();