summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/sharebreadcrumbview.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-04-12 15:04:12 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2017-04-12 15:04:12 +0200
commit37145a275f9188290afa38683216c860aea00f91 (patch)
tree341141bdce54d4aaab4002ce87242a40a647d3ab /apps/files_sharing/js/sharebreadcrumbview.js
parentaf42ca20252b166bec2da34970137ec790a18328 (diff)
downloadnextcloud-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 'apps/files_sharing/js/sharebreadcrumbview.js')
-rw-r--r--apps/files_sharing/js/sharebreadcrumbview.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/js/sharebreadcrumbview.js b/apps/files_sharing/js/sharebreadcrumbview.js
index 36bbddfaec4..64d2df52d2c 100644
--- a/apps/files_sharing/js/sharebreadcrumbview.js
+++ b/apps/files_sharing/js/sharebreadcrumbview.js
@@ -44,21 +44,21 @@
if (this._dirInfo !== null && (this._dirInfo.path !== '/' || this._dirInfo.name !== '')) {
var isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0;
- this.$el.removeClass('shared icon-public icon-share');
+ this.$el.removeClass('shared icon-public icon-shared');
if (isShared) {
this.$el.addClass('shared');
if (data.dirInfo.shareTypes.indexOf(OC.Share.SHARE_TYPE_LINK) !== -1) {
this.$el.addClass('icon-public');
} else {
- this.$el.addClass('icon-share');
+ this.$el.addClass('icon-shared');
}
} else {
- this.$el.addClass('icon-share');
+ this.$el.addClass('icon-shared');
}
this.$el.show();
this.delegateEvents();
} else {
- this.$el.removeClass('shared icon-public icon-share');
+ this.$el.removeClass('shared icon-public icon-shared');
this.$el.hide();
}