1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Remove avatar when setting thumbnail

This commit is contained in:
Thomas Tanghus 2014-02-08 16:35:41 +01:00
parent 047ed7634f
commit 68ef8353fa

View File

@ -1602,7 +1602,7 @@ OC.Contacts = OC.Contacts || {};
return;
}
if(this.data.thumbnail) {
$elem.removeClass('thumbnail');
$elem.removeClass('thumbnail').find('.avatar').remove();
$elem.css('background-image', 'url(data:image/png;base64,' + this.data.thumbnail + ')');
} else {
$elem.addClass('thumbnail');