Hide search results after switching directory
When clicking on a folder result in the search result list, the result box for "results in another folder" must disappear.
This commit is contained in:
parent
bf3ee69d86
commit
39b533d0d8
|
@ -184,6 +184,13 @@
|
|||
|
||||
search.setHandler('folder', this.handleFolderClick.bind(this));
|
||||
search.setHandler(['file', 'audio', 'image'], this.handleFileClick.bind(this));
|
||||
|
||||
if (self.fileAppLoaded()) {
|
||||
// hide results when switching directory outside of search results
|
||||
$('#app-content').delegate('>div', 'changeDirectory', function() {
|
||||
search.clear();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
OCA.Search.Files = Files;
|
||||
|
|
Loading…
Reference in New Issue