diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-01-23 12:57:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 12:57:52 -0600 |
commit | 30c32e0b1622f78ea7e3077ed0f12584fd0882a8 (patch) | |
tree | f1951c051c523ee2f386b146fdf742494535cca1 /apps | |
parent | d80bc6c72b0bf46f88decbaf63ecf469aa311321 (diff) | |
parent | 0f698e2021aa18e268aac08187a6cc58fcf69797 (diff) | |
download | nextcloud-server-30c32e0b1622f78ea7e3077ed0f12584fd0882a8.tar.gz nextcloud-server-30c32e0b1622f78ea7e3077ed0f12584fd0882a8.zip |
Merge pull request #3220 from nextcloud/direct-link-open-sidebar
open the sidebar when opening a permalink
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 5 |
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() { |