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 /apps/files_sharing/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 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/app.js | 5 | ||||
-rw-r--r-- | apps/files_sharing/js/share.js | 2 | ||||
-rw-r--r-- | apps/files_sharing/js/sharebreadcrumbview.js | 8 |
3 files changed, 7 insertions, 8 deletions
diff --git a/apps/files_sharing/js/app.js b/apps/files_sharing/js/app.js index 6f12b3d4456..e6c9159eda4 100644 --- a/apps/files_sharing/js/app.js +++ b/apps/files_sharing/js/app.js @@ -40,7 +40,7 @@ OCA.Sharing.App = { this._extendFileList(this._inFileList); this._inFileList.appName = t('files_sharing', 'Shared with you'); - this._inFileList.$el.find('#emptycontent').html('<div class="icon-share"></div>' + + this._inFileList.$el.find('#emptycontent').html('<div class="icon-shared"></div>' + '<h2>' + t('files_sharing', 'Nothing shared with you yet') + '</h2>' + '<p>' + t('files_sharing', 'Files and folders others share with you will show up here') + '</p>'); return this._inFileList; @@ -63,7 +63,7 @@ OCA.Sharing.App = { this._extendFileList(this._outFileList); this._outFileList.appName = t('files_sharing', 'Shared with others'); - this._outFileList.$el.find('#emptycontent').html('<div class="icon-share"></div>' + + this._outFileList.$el.find('#emptycontent').html('<div class="icon-shared"></div>' + '<h2>' + t('files_sharing', 'Nothing shared yet') + '</h2>' + '<p>' + t('files_sharing', 'Files and folders you share will show up here') + '</p>'); return this._outFileList; @@ -194,4 +194,3 @@ $(document).ready(function() { OCA.Sharing.App.removeSharingLinks(); }); }); - diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index ed516efc3c9..c40ca07b76b 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -154,7 +154,7 @@ altText: t('core', 'Share'), mime: 'all', permissions: OC.PERMISSION_ALL, - iconClass: 'icon-share', + iconClass: 'icon-shared', type: OCA.Files.FileActions.TYPE_INLINE, actionHandler: function(fileName) { fileList.showDetailsView(fileName, 'shareTabView'); 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(); } |