diff options
-rw-r--r-- | apps/files/js/breadcrumb.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js index b32cbf89b42..4d67d1600fe 100644 --- a/apps/files/js/breadcrumb.js +++ b/apps/files/js/breadcrumb.js @@ -249,9 +249,10 @@ * Get the crumb to show */ _getCrumbElement: function() { - var length = this.$el.find('.crumb.hidden').length; + var hidden = this.$el.find('.crumb.hidden').length; + var shown = this.$el.find('.crumb:not(.hidden):not(.crumbhome):not(.crumbmenu)').length; // Get the outer one with priority to the highest - var elmt = (length % 2) * (length - 1); + var elmt = (1 - shown % 2) * (hidden - 1); return this.$el.find('.crumb.hidden:eq('+elmt+')'); }, |