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:
parent
04e3da0cf5
commit
bf3ee69d86
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue