diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-24 11:31:29 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-06-24 11:31:29 +0200 |
commit | bf3ee69d8612a9f6df730ea5e28175317a24fe23 (patch) | |
tree | 0b1c8d5abf518fd987b0ef699704158da4b9192a /apps/files/js/search.js | |
parent | 04e3da0cf51f23b501eaef34e4be771b15c6e6d2 (diff) | |
download | nextcloud-server-bf3ee69d8612a9f6df730ea5e28175317a24fe23.tar.gz nextcloud-server-bf3ee69d8612a9f6df730ea5e28175317a24fe23.zip |
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.
Diffstat (limited to 'apps/files/js/search.js')
-rw-r--r-- | apps/files/js/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/search.js b/apps/files/js/search.js index 394bcb48603..d35cacfa402 100644 --- a/apps/files/js/search.js +++ b/apps/files/js/search.js @@ -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; |