mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
Js magic to reset search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
8c732e376b
commit
7b4b45306b
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue