summaryrefslogtreecommitdiffstats
path: root/apps/files/js/breadcrumb.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-11-06 05:27:10 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-11-08 13:04:39 +0100
commit33bac270db6977dd65ef02e8bb8b1d75bbefcbbd (patch)
tree12036ac51190ec71bd52b1e0d5adca35756a4200 /apps/files/js/breadcrumb.js
parent03d074ebe8517f4bfe7ec7b484c742cb13c5a462 (diff)
downloadnextcloud-server-33bac270db6977dd65ef02e8bb8b1d75bbefcbbd.tar.gz
nextcloud-server-33bac270db6977dd65ef02e8bb8b1d75bbefcbbd.zip
Do not hide root
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/breadcrumb.js')
-rw-r--r--apps/files/js/breadcrumb.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js
index 2a864a24c5b..e44da02fe53 100644
--- a/apps/files/js/breadcrumb.js
+++ b/apps/files/js/breadcrumb.js
@@ -216,6 +216,7 @@
crumbs.push({
name: t('core', 'Home'),
dir: '/',
+ class: 'crumbhome',
linkclass: 'icon-home'
});
for (var i = 0; i < parts.length; i++) {
@@ -233,7 +234,7 @@
* Hide the middle crumb
*/
_hideCrumb: function() {
- var selector = '.crumb:not(.hidden):not(.crumbmenu)';
+ var selector = '.crumb:not(.hidden):not(.crumbhome):not(.crumbmenu)';
var length = this.$el.find(selector).length;
// Get the middle one floored down
var elmt = Math.floor(length / 2 - 0.5);