diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-03-17 20:19:13 +0100 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2025-05-22 15:16:54 +0200 |
| commit | 32823ecb69b115a6726475d6421f0a1c0327fafa (patch) | |
| tree | f339a2318c8fc78ecf6030938472f96190ead66f /searx/templates | |
| parent | 156d1eb8c85c01c94723188859fa7526c7d72698 (diff) | |
[refactor] search.js: use custom auto completion implementation
The previously used library is unmaintained for 6 years now [1] and the solution
had know issues [2][3]
[1] https://github.com/searxng/searxng/pull/4284#discussion_r1954493434
[2] https://github.com/searxng/searxng/pull/4318#issuecomment-2731576657
[3] https://github.com/privau/searxng/issues/56
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/simple/search.html | 1 | ||||
| -rw-r--r-- | searx/templates/simple/simple_search.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/searx/templates/simple/search.html b/searx/templates/simple/search.html index b26e27821..180c56160 100644 --- a/searx/templates/simple/search.html +++ b/searx/templates/simple/search.html @@ -9,6 +9,7 @@ <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" {%- if search_on_category_select -%}name="category_{{ selected_categories[0]|replace(' ', '_') }}"{%- endif -%} aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button> + <div class="autocomplete hide_if_nojs"><ul></ul></div> </div> </div> {% set display_tooltip = true %} diff --git a/searx/templates/simple/simple_search.html b/searx/templates/simple/simple_search.html index f69ba6142..af533e6e0 100644 --- a/searx/templates/simple/simple_search.html +++ b/searx/templates/simple/simple_search.html @@ -5,6 +5,7 @@ <input id="q" name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" autocapitalize="none" spellcheck="false" autocorrect="off" 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') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button> + <div class="autocomplete hide_if_nojs"><ul></ul></div> </div> </div> </div> |