Unverified Commit 39b533d0 authored by Vincent Petry's avatar Vincent Petry
Browse files

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.
parent bf3ee69d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment