Merge pull request #6658 from nextcloud/fix_6618

Don't show placeholder when we have loaded the avatar image
This commit is contained in:
Morris Jobke 2017-09-27 10:11:19 +02:00 committed by GitHub
commit 1fc8ac6db2
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));