Don't show placeholder when we have loaded the avatar image

Fixes #6618
Else it shows up as background to transparent avatars

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/6658/head
Roeland Jago Douma 8 years ago
parent 271959b1d9
commit b0c9380114
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 1
      core/js/jquery.avatar.js
  2. 9
      core/js/placeholder.js

@ -148,6 +148,7 @@
$div.show();
$div.text('');
$div.append(img);
$div.clearimageplaceholder();
};
img.width = size;

@ -148,4 +148,13 @@
this.html(text[0].toUpperCase());
}
};
$.fn.clearimageplaceholder = function() {
this.css('background-color', '');
this.css('color', '');
this.css('font-weight', '');
this.css('text-align', '');
this.css('line-height', '');
this.css('font-size', '');
};
}(jQuery));

Loading…
Cancel
Save