Merge pull request #6658 from nextcloud/fix_6618
Don't show placeholder when we have loaded the avatar image
This commit is contained in:
commit
1fc8ac6db2
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