aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-23 18:06:24 +0100
committerRobin Appelman <robin@icewind.nl>2017-01-23 18:06:24 +0100
commit0f698e2021aa18e268aac08187a6cc58fcf69797 (patch)
treeed75147d2daa37239f9a53589f41d7b9a3a415ef /apps/files
parent5d486478d3d6d316b1895ea440a05f31488e2f9f (diff)
downloadnextcloud-server-0f698e2021aa18e268aac08187a6cc58fcf69797.tar.gz
nextcloud-server-0f698e2021aa18e268aac08187a6cc58fcf69797.zip
open the sidebar when opening a permalink
Also works for search results Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index bcada9acfe5..3a59da53517 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2478,6 +2478,11 @@
if (!_.isArray(file)) {
file = [file];
}
+ if (file.length === 1) {
+ _.defer(function() {
+ this.showDetailsView(file[0]);
+ }.bind(this));
+ }
this.highlightFiles(file, function($tr) {
$tr.addClass('searchresult');
$tr.one('hover', function() {