From 33bac270db6977dd65ef02e8bb8b1d75bbefcbbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 6 Nov 2017 05:27:10 +0100 Subject: [PATCH] Do not hide root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/js/breadcrumb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js index 2a864a24c5..e44da02fe5 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);