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:
Roeland Jago Douma 2017-09-26 22:50:16 +02:00
parent 271959b1d9
commit b0c9380114
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 10 additions and 0 deletions

View File

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

View File

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