diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-19 19:55:54 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-19 19:55:54 +0100 |
commit | 076c6889d3b6ac3671bca16bb251f9f31c7191b6 (patch) | |
tree | 7c9061861841f91816733e0d50e549e1538515d9 /searx/templates/simple/macros.html | |
parent | c3c2a623fe054ee38a251a0bd5ac0c82efbc469a (diff) | |
download | searxng-076c6889d3b6ac3671bca16bb251f9f31c7191b6.tar.gz searxng-076c6889d3b6ac3671bca16bb251f9f31c7191b6.zip |
[fix] simple theme: open preferences with general tab
BTW: fix also the category tab to open with category 'general'
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r-- | searx/templates/simple/macros.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 637966715..7d9b9f4ae 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -55,8 +55,8 @@ <div class="tabs" role="tablist"> {%- endmacro -%} -{%- macro tab_header(name, id, label) -%} -<input type="radio" name="{{ name }}" id="tab-{{ id }}"/> +{%- macro tab_header(name, id, label, checked) -%} +<input type="radio" name="{{ name }}" id="tab-{{ id }}" {% if checked is sameas true %}checked="checked"{% endif %} /> <label id="tab-label-{{ label }}" for="tab-{{ id }}" role="tab" aria-controls="tab-content-{{ id }}">{{ label }}</label> <section id="tab-content-{{ id }}" role="tabpanel" aria-labelledby="tab-label-{{ label }}" aria-hidden="false"> {%- endmacro -%} |