mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Remove avatar when setting thumbnail
This commit is contained in:
parent
047ed7634f
commit
68ef8353fa
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user