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>
This commit is contained in:
parent
271959b1d9
commit
b0c9380114
2 changed files with 10 additions and 0 deletions
|
@ -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…
Reference in a new issue