mirror of
https://github.com/searxng/searxng.git
synced 2025-07-31 17:12:20 +02:00
[fix] fix the reset button in the oscar theme (#2306)
Rely on javascript instead of type="clear" Close #2009
This commit is contained in:
parent
4a36a3044d
commit
1b700738eb
8 changed files with 49 additions and 5 deletions
|
@ -21,6 +21,13 @@ $(document).ready(function(){
|
|||
*/
|
||||
$('#q.autofocus').focus();
|
||||
|
||||
/**
|
||||
* Empty search bar when click on reset button
|
||||
*/
|
||||
$("#clear_search").click(function () {
|
||||
document.getElementById("q").value = "";
|
||||
});
|
||||
|
||||
/**
|
||||
* select full content on click if class="select-all-on-click"
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue