[fix] simple: the clear button works without javascript
related to #928
This commit is contained in:
		
							parent
							
								
									a250ddadb9
								
							
						
					
					
						commit
						d597f36e07
					
				| @ -5,8 +5,8 @@ | |||||||
|       {% include '__common__/searxng-wordmark.min.svg' without context %} |       {% include '__common__/searxng-wordmark.min.svg' without context %} | ||||||
|     </a> |     </a> | ||||||
|     <div class="search_box"> |     <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 %} > |       <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="button" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> |       <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> |       <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> |     </div> | ||||||
|     {% set display_tooltip = true %} |     {% set display_tooltip = true %} | ||||||
|  | |||||||
| @ -1,8 +1,8 @@ | |||||||
| <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}" role="search"> | <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}" role="search"> | ||||||
|   <div id="search_header"> |   <div id="search_header"> | ||||||
|     <div class="search_box"> |     <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 %} > |       <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="button" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> |       <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> |       <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> |     </div> | ||||||
|   </div> |   </div> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alexandre Flament
						Alexandre Flament