diff options
Diffstat (limited to 'apps/files/js/breadcrumb.js')
-rw-r--r-- | apps/files/js/breadcrumb.js | 3 |
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); |