From ecb10db0391c98ffe7c4c0abfaeda93d066cfc02 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 13 Oct 2015 11:36:24 +0200 Subject: Remove controls for file lists that don't need it Remove controls from sharing overview and favorite file lists which don't display paths. --- apps/files/js/filelist.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/files/js') 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(); -- cgit v1.2.3