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} {else}
{tr("search_for_groups")} {tr("search_for_groups")}
{/if} {/if}
{if $_GET['query']}
- {$_GET['query']}
{/if}
{/block} {/block}
{block header} {block header}
@ -21,12 +24,12 @@
{block tabs} {block tabs}
<div {if $type === "users"}id="activetabs"{/if} class="tab"> <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} {_users}
</a> </a>
</div> </div>
<div {if $type === "groups"}id="activetabs"{/if} class="tab"> <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} {_groups}
</a> </a>
</div> </div>