summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-04 14:35:48 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-04 14:56:49 +0100
commit8c9a3ccefc81206f3a381d365e5909405169aa65 (patch)
tree7c105c66896c8a244b9aa87d8091f9e93cc10937 /settings
parenta619629ac0e026fa938b45eeb82ea2a7ebe35aa2 (diff)
downloadnextcloud-server-8c9a3ccefc81206f3a381d365e5909405169aa65.tar.gz
nextcloud-server-8c9a3ccefc81206f3a381d365e5909405169aa65.zip
Do not request an avatar if there is none
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index aeecac7b243..2f8a964bafb 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -64,8 +64,12 @@ var UserList = {
/**
* Avatar or placeholder
*/
- if ($tr.find('div.avatardiv').length){
- $('div.avatardiv', $tr).avatar(user.name, 32, undefined, undefined, undefined, user.displayname);
+ if ($tr.find('div.avatardiv').length) {
+ if (user.isAvatarAvailable === true) {
+ $('div.avatardiv', $tr).avatar(user.name, 32, undefined, undefined, undefined, user.displayname);
+ } else {
+ $('div.avatardiv', $tr).imageplaceholder(user.displayname);
+ }
}
/**