From 086397d8a18391823e223eeee23e6ef04350b354 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sat, 4 Aug 2012 15:57:49 -0400 Subject: Fix condition checking for resizing breadcrumbs --- apps/files/js/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index d003dab3dd2..1b51b0e5df9 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -547,7 +547,7 @@ $(document).ready(function() { function resizeBreadcrumbs(firstRun) { var width = $(this).width(); if (width != lastWidth) { - if (width < lastWidth || firstRun && width < breadcrumbsWidth) { + if ((width < lastWidth || firstRun) && width < breadcrumbsWidth) { if (hiddenBreadcrumbs == 0) { breadcrumbsWidth -= $(breadcrumbs[1]).get(0).offsetWidth; $(breadcrumbs[1]).find('a').hide(); -- cgit v1.2.3