diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-13 11:36:24 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-13 11:36:24 +0200 |
commit | ecb10db0391c98ffe7c4c0abfaeda93d066cfc02 (patch) | |
tree | 98ab4352515c5f75b19193b2512187ee556d9343 /apps/files/js | |
parent | 1cb4f1080a57bfffe5d71d7496b61184434ff84d (diff) | |
download | nextcloud-server-ecb10db0391c98ffe7c4c0abfaeda93d066cfc02.tar.gz nextcloud-server-ecb10db0391c98ffe7c4c0abfaeda93d066cfc02.zip |
Remove controls for file lists that don't need it
Remove controls from sharing overview and favorite file lists which
don't display paths.
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 6cf82391baf..246c5bd6290 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -226,7 +226,11 @@ } this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions); - this.$el.find('#controls').prepend(this.breadcrumb.$el); + var $controls = this.$el.find('#controls'); + if ($controls.length > 0) { + $controls.prepend(this.breadcrumb.$el); + this.$table.addClass('has-controls'); + } this._renderNewButton(); |