mirror of
https://github.com/searxng/searxng.git
synced 2026-01-01 16:40:02 +00: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:
@@ -123,6 +123,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"
|
||||
*/
|
||||
|
||||
4
searx/static/themes/oscar/js/searx.min.js
vendored
4
searx/static/themes/oscar/js/searx.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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"
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user