summaryrefslogtreecommitdiffstats
path: root/search
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-19 00:30:55 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-01-02 10:28:41 +0100
commit74fd31d9bfaf2793290594d6eccf707cdcad9d02 (patch)
tree55cb16fa6336c81e76249e68d2bb3cd1695e2b32 /search
parent980f88c9b51ef90151836cfa59d9fda5de4c6890 (diff)
downloadnextcloud-server-74fd31d9bfaf2793290594d6eccf707cdcad9d02.tar.gz
nextcloud-server-74fd31d9bfaf2793290594d6eccf707cdcad9d02.zip
set empty filter when hiding results / esc
Diffstat (limited to 'search')
-rw-r--r--search/js/search.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/search/js/search.js b/search/js/search.js
index 4933bbec625..f2ed58a8436 100644
--- a/search/js/search.js
+++ b/search/js/search.js
@@ -246,6 +246,9 @@
}
}
this.hideResults = function() {
+ if(that.hasFilter(getCurrentApp())) {
+ that.getFilter(getCurrentApp())('');
+ }
if ($searchResults) {
$searchResults.hide();
$searchBox.val('');