summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-14 12:37:55 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-14 12:37:55 +0200
commit01cc38018a81ae5ab72566b255d77b6d08ae6206 (patch)
tree00d7ef022357abdbfb6ed3fbfd25fa16ecabd3de /apps/files/js/filelist.js
parent24011d8597f23244583aa6e7e9e280fc7633f008 (diff)
parentecb10db0391c98ffe7c4c0abfaeda93d066cfc02 (diff)
downloadnextcloud-server-01cc38018a81ae5ab72566b255d77b6d08ae6206.tar.gz
nextcloud-server-01cc38018a81ae5ab72566b255d77b6d08ae6206.zip
Merge pull request #19733 from owncloud/remove-controls-whennotneeded
Remove controls for file lists that don't need it
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js6
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();