Search: No need to repeat query when changing tab

This commit is contained in:
Ilya Prokopenko 2022-01-02 17:54:48 +03:00
parent cca9151661
commit c10b8274a6
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -6,6 +6,9 @@
{else}
{tr("search_for_groups")}
{/if}
{if $_GET['query']}
- {$_GET['query']}
{/if}
{/block}
{block header}
@ -21,12 +24,12 @@
{block tabs}
<div {if $type === "users"}id="activetabs"{/if} class="tab">
<a {if $type === "users"}id="act_tab_a"{/if} href="/search?type=users">
<a {if $type === "users"}id="act_tab_a"{/if} href="/search?type=users{if $_GET['query']}&query={urlencode($_GET['query'])}{/if}">
{_users}
</a>
</div>
<div {if $type === "groups"}id="activetabs"{/if} class="tab">
<a {if $type === "groups"}id="act_tab_a"{/if} href="/search?type=groups">
<a {if $type === "groups"}id="act_tab_a"{/if} href="/search?type=groups{if $_GET['query']}&query={urlencode($_GET['query'])}{/if}">
{_groups}
</a>
</div>