aboutsummaryrefslogtreecommitdiffstats
path: root/core/search
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-01-26 15:33:05 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-01-26 15:33:05 +0100
commit7b4b45306b2b83b5b5542eea33cca00c1746d162 (patch)
tree39904b61612505f66f43a64db96648f22acef96c /core/search
parent8c732e376bfb75ad9586ab90258bcc3b558819e7 (diff)
downloadnextcloud-server-7b4b45306b2b83b5b5542eea33cca00c1746d162.tar.gz
nextcloud-server-7b4b45306b2b83b5b5542eea33cca00c1746d162.zip
Js magic to reset search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/search')
-rw-r--r--core/search/js/search.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/search/js/search.js b/core/search/js/search.js
index 4dd29ef917f..44a69842374 100644
--- a/core/search/js/search.js
+++ b/core/search/js/search.js
@@ -405,6 +405,10 @@ $(document).ready(function() {
OC.Search = new OCA.Search($('#searchbox'), $('#searchresults'));
});
}
+ $('#searchbox + .icon-close-white').click(function() {
+ OC.Search.clear();
+ $('#searchbox').focus();
+ });
});
/**