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

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/7711/head
Julius Härtl 8 years ago
parent ecf8850464
commit 04a18098e4
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 5
      core/js/jquery.avatar.js
  2. 1
      core/js/placeholder.js

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

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

Loading…
Cancel
Save