Do not hide root

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-11-06 05:27:10 +01:00
parent 03d074ebe8
commit 33bac270db
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
1 changed files with 2 additions and 1 deletions

View File

@ -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);