summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-07 21:23:55 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-07 21:23:55 -0400
commitb1a7e308198a67de82baec06a423e86b1062b7b3 (patch)
treebc13ee8159d4ed0cb6b3bad0d9719140c7a8bc65 /core
parent35a1738a39fbce50ec22561a0308d9a672eb6c78 (diff)
downloadnextcloud-server-b1a7e308198a67de82baec06a423e86b1062b7b3.tar.gz
nextcloud-server-b1a7e308198a67de82baec06a423e86b1062b7b3.zip
Actually change background image of shared items
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js
index b24db6bc0d9..467a0e4d954 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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;
});