open the sidebar when opening a permalink

Also works for search results

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-01-23 18:06:24 +01:00
parent 5d486478d3
commit 0f698e2021
No known key found for this signature in database
GPG key ID: 50F2B59C6DEBBCFE

View file

@ -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() {