diff options
author | Alexandre Flament <alex@al-f.net> | 2022-02-27 08:30:19 +0100 |
---|---|---|
committer | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-03-08 19:37:21 +0000 |
commit | d597f36e07ec9e144fabce70fcfb0183107646f6 (patch) | |
tree | 8eb0f03d1b00df8fb90ca84d24b332ba21a4b51f /searx/templates/simple/search.html | |
parent | a250ddadb9b366cf7aadf82ae97bf2fc4e837a87 (diff) | |
download | searxng-d597f36e07ec9e144fabce70fcfb0183107646f6.tar.gz searxng-d597f36e07ec9e144fabce70fcfb0183107646f6.zip |
[fix] simple: the clear button works without javascript
related to #928
Diffstat (limited to 'searx/templates/simple/search.html')
-rw-r--r-- | searx/templates/simple/search.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/simple/search.html b/searx/templates/simple/search.html index fb0239ef4..8c64211e5 100644 --- a/searx/templates/simple/search.html +++ b/searx/templates/simple/search.html @@ -5,8 +5,8 @@ {% include '__common__/searxng-wordmark.min.svg' without context %} </a> <div class="search_box"> - <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" spellcheck="false" dir="auto" {% if q %}value="{{ q }}"{% endif %} > - <button id="clear_search" type="button" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> + <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" spellcheck="false" dir="auto" value="{{ q or '' }}"> + <button id="clear_search" type="reset" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> <button id="send_search" type="submit" aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button> </div> {% set display_tooltip = true %} |