mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue