From b1a7e308198a67de82baec06a423e86b1062b7b3 Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <mtgap@owncloud.com>
Date: Tue, 7 Aug 2012 21:23:55 -0400
Subject: [PATCH] Actually change background image of shared items

---
 core/js/share.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/js/share.js b/core/js/share.js
index b24db6bc0d..467a0e4d95 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;
 				});
-- 
GitLab