Fix search result link for file results outside default list

When outside the "All files" list, the search result link must properly
redirect to the "All files" list.
This commit is contained in:
Vincent Petry 2016-06-24 11:31:29 +02:00
parent 04e3da0cf5
commit bf3ee69d86
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@
this.handleFolderClick = function($row, result, event) {
// open folder
if (self.fileAppLoaded()) {
if (self.fileAppLoaded() && self.fileList.id === 'files') {
self.fileList.changeDirectory(result.path);
return false;
} else {
@ -142,7 +142,7 @@
};
this.handleFileClick = function($row, result, event) {
if (self.fileAppLoaded()) {
if (self.fileAppLoaded() && self.fileList.id === 'files') {
self.fileList.changeDirectory(OC.dirname(result.path));
self.fileList.scrollTo(result.name);
return false;