diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-01-26 17:33:05 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-01-26 17:33:05 +0300 |
commit | 7b4b45306b2b83b5b5542eea33cca00c1746d162 (patch) | |
tree | 39904b61612505f66f43a64db96648f22acef96c /core/search | |
parent | 8c732e376bfb75ad9586ab90258bcc3b558819e7 (diff) |
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.js | 4 |
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(); + }); }); /** |