Do not request an avatar if there is none
This commit is contained in:
parent
a619629ac0
commit
8c9a3ccefc
|
@ -64,8 +64,12 @@ var UserList = {
|
|||
/**
|
||||
* Avatar or placeholder
|
||||
*/
|
||||
if ($tr.find('div.avatardiv').length){
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue