diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-04-12 15:04:12 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-04-12 15:04:12 +0200 |
commit | 37145a275f9188290afa38683216c860aea00f91 (patch) | |
tree | 341141bdce54d4aaab4002ce87242a40a647d3ab /core/js/share.js | |
parent | af42ca20252b166bec2da34970137ec790a18328 (diff) | |
download | nextcloud-server-37145a275f9188290afa38683216c860aea00f91.tar.gz nextcloud-server-37145a275f9188290afa38683216c860aea00f91.zip |
Fix AdBlock blocking share icon, ref #866
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/js/share.js b/core/js/share.js index ba1afe08190..262d0a5d166 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -107,7 +107,7 @@ OC.Share = _.extend(OC.Share || {}, { } // TODO: iterating over the files might be more efficient for (item in OC.Share.statuses){ - var iconClass = 'icon-share'; + var iconClass = 'icon-shared'; var data = OC.Share.statuses[item]; var hasLink = data.link; // Links override shared in terms of icon display @@ -115,7 +115,7 @@ OC.Share = _.extend(OC.Share || {}, { iconClass = 'icon-public'; } if (itemType !== 'file' && itemType !== 'folder') { - $('a.share[data-item="'+item+'"] .icon').removeClass('icon-share icon-public').addClass(iconClass); + $('a.share[data-item="'+item+'"] .icon').removeClass('icon-shared icon-public').addClass(iconClass); } else { // TODO: ultimately this part should be moved to files_sharing app var file = $fileList.find('tr[data-id="'+item+'"]'); @@ -173,12 +173,12 @@ OC.Share = _.extend(OC.Share || {}, { } } else if (OC.Share.itemShares[index].length > 0) { shares = true; - iconClass = 'icon-share'; + iconClass = 'icon-shared'; } } }); if (itemType != 'file' && itemType != 'folder') { - $('a.share[data-item="'+itemSource+'"] .icon').removeClass('icon-share icon-public').addClass(iconClass); + $('a.share[data-item="'+itemSource+'"] .icon').removeClass('icon-shared icon-public').addClass(iconClass); } else { var $tr = $('tr').filterAttr('data-id', String(itemSource)); if ($tr.length > 0) { @@ -262,7 +262,7 @@ OC.Share = _.extend(OC.Share || {}, { var recipients; var owner = $tr.attr('data-share-owner'); var shareFolderIcon; - var iconClass = 'icon-share'; + var iconClass = 'icon-shared'; action.removeClass('shared-style'); // update folder icon if (type === 'dir' && (hasShares || hasLink || owner)) { @@ -312,7 +312,7 @@ OC.Share = _.extend(OC.Share || {}, { if (hasLink) { iconClass = 'icon-public'; } - icon.removeClass('icon-share icon-public').addClass(iconClass); + icon.removeClass('icon-shared icon-public').addClass(iconClass); }, /** * |