mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Actually change background image of shared items
This commit is contained in:
parent
35a1738a39
commit
b1a7e30819
1 changed files with 3 additions and 2 deletions
|
|
@ -18,10 +18,11 @@ OC.Share={
|
|||
// Private links override shared in terms of icon display
|
||||
if (itemType != 'file' && itemType != 'folder') {
|
||||
if (hasPrivateLink) {
|
||||
$('.share').find('[data-item="'+item+'"]').attr('src', OC.imagePath('core', 'actions/public'));
|
||||
var image = OC.imagePath('core', 'actions/public');
|
||||
} else {
|
||||
$('.share').find('[data-item="'+item+'"]').attr('src', OC.imagePath('core', 'actions/shared'));
|
||||
var image = OC.imagePath('core', 'actions/shared');
|
||||
}
|
||||
$('a.share[data-item="'+item+'"]').css('background', 'url('+image+') no-repeat center');
|
||||
}
|
||||
OC.Share.statuses[item] = hasPrivateLink;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue