diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-04 14:35:48 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-04 14:56:49 +0100 |
commit | 8c9a3ccefc81206f3a381d365e5909405169aa65 (patch) | |
tree | 7c105c66896c8a244b9aa87d8091f9e93cc10937 /settings | |
parent | a619629ac0e026fa938b45eeb82ea2a7ebe35aa2 (diff) | |
download | nextcloud-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.js | 8 |
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); + } } /** |