summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-04 15:57:49 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-04 15:57:49 -0400
commit086397d8a18391823e223eeee23e6ef04350b354 (patch)
tree4aa87e1ccbd0740c9b987951985e86a351f634bb /apps/files/js
parent207ca3ec06f642477632c3b79ed50820cf3d324a (diff)
downloadnextcloud-server-086397d8a18391823e223eeee23e6ef04350b354.tar.gz
nextcloud-server-086397d8a18391823e223eeee23e6ef04350b354.zip
Fix condition checking for resizing breadcrumbs
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js2
1 files changed, 1 insertions, 1 deletions
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();