summaryrefslogtreecommitdiff
path: root/searx/templates/simple/search.html
diff options
context:
space:
mode:
authorJinyuan Huang <88757735+BernieHuang2008@users.noreply.github.com>2023-09-23 00:02:29 +0000
committerAlexandre Flament <alex@al-f.net>2023-09-25 23:01:14 +0200
commit1f835a9f1f6b444bbe7f3b82349444cb050db9c0 (patch)
tree001d6ece09f55a07934c141960d7b85810017bc4 /searx/templates/simple/search.html
parent51bcd95a754eca6d5a3420615ac6c3c37c993702 (diff)
downloadsearxng-1f835a9f1f6b444bbe7f3b82349444cb050db9c0.tar.gz
searxng-1f835a9f1f6b444bbe7f3b82349444cb050db9c0.zip
solve #2839
Diffstat (limited to 'searx/templates/simple/search.html')
-rw-r--r--searx/templates/simple/search.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/search.html b/searx/templates/simple/search.html
index e5b44169e..360873c76 100644
--- a/searx/templates/simple/search.html
+++ b/searx/templates/simple/search.html
@@ -8,7 +8,7 @@
<div class="search_box">
<input id="q" name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" autocapitalize="none" spellcheck="false" autocorrect="off" dir="auto" value="{{ q or '' }}">
<button id="clear_search" type="reset" aria-label="{{ _('clear') }}" class="hide_if_nojs"><span>{{ 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" {%- if search_on_category_select -%}name="category_{{ selected_categories[0]|replace(' ', '_') }}"{%- endif -%} 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 %}