From 0f698e2021aa18e268aac08187a6cc58fcf69797 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 23 Jan 2017 18:06:24 +0100 Subject: [PATCH] open the sidebar when opening a permalink Also works for search results Signed-off-by: Robin Appelman --- apps/files/js/filelist.js | 5 +++++ 1 file changed, 5 insertions(+) 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() { -- 2.39.5