diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-07 21:23:55 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-07 21:23:55 -0400 |
commit | b1a7e308198a67de82baec06a423e86b1062b7b3 (patch) | |
tree | bc13ee8159d4ed0cb6b3bad0d9719140c7a8bc65 /core | |
parent | 35a1738a39fbce50ec22561a0308d9a672eb6c78 (diff) | |
download | nextcloud-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.js | 5 |
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; }); |