aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-24 22:05:02 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-24 22:05:02 +0100
commit2b8ef3aca9dafa8852011fd8ee7fc780e2256243 (patch)
treef8fa130b70aedb8941e5522035cfc824a45a7bb3
parentcc2092a511c3d09ac2e0eb0d4bf75a58f6f4366b (diff)
downloadnextcloud-server-2b8ef3aca9dafa8852011fd8ee7fc780e2256243.tar.gz
nextcloud-server-2b8ef3aca9dafa8852011fd8ee7fc780e2256243.zip
Fix middle click on breadcrumb
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 871c42ead89..f55e73b434b 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -466,11 +466,11 @@
var $el = $(e.target).closest('.crumb'),
$targetDir = $el.data('dir');
- if ($targetDir !== undefined) {
+ if ($targetDir !== undefined && e.which === 1) {
e.preventDefault();
this.changeDirectory($targetDir);
+ this.updateSearch();
}
- this.updateSearch();
},
/**