]> source.dussan.org Git - nextcloud-server.git/commitdiff
open the sidebar when opening a permalink 3220/head
authorRobin Appelman <robin@icewind.nl>
Mon, 23 Jan 2017 17:06:24 +0000 (18:06 +0100)
committerRobin Appelman <robin@icewind.nl>
Mon, 23 Jan 2017 17:06:24 +0000 (18:06 +0100)
Also works for search results

Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files/js/filelist.js

index bcada9acfe589a9948f441b72049ad3d020f2fe5..3a59da53517df43f54eb2cf4c9b12813dfa347b9 100644 (file)
                        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() {