Remove show() function since we always show the avatar container

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-01-05 11:47:03 +01:00
parent ecf8850464
commit 04a18098e4
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 4 deletions

View File

@ -110,9 +110,8 @@
// If the new image loads successfully set it.
img.onload = function() {
$div.text('');
$div.append(img);
$div.clearimageplaceholder();
$div.append(img);
if(typeof callback === 'function') {
callback();
@ -127,7 +126,6 @@
$div.imageplaceholder(user, displayname);
} else {
setAvatarForUnknownUser($div);
$div.removeClass('icon-loading');
}
if(typeof callback === 'function') {
@ -136,7 +134,6 @@
};
$div.addClass('icon-loading');
$div.show();
img.width = size;
img.height = size;
img.src = url;

View File

@ -156,6 +156,7 @@
this.css('text-align', '');
this.css('line-height', '');
this.css('font-size', '');
this.html('');
this.removeClass('icon-loading');
};
}(jQuery));