forked from abaevdict/abaev-basex
disable search input when query active
This commit is contained in:
parent
04ab9741b4
commit
8a0f8c77fe
1 changed files with 4 additions and 1 deletions
|
@ -102,7 +102,10 @@ declare function page:header($lang as xs:string, $href-other as xs:string) {
|
||||||
<input name="searchQuery"
|
<input name="searchQuery"
|
||||||
placeholder="{if ($lang = 'ru') then 'Искать' else 'Search'}"
|
placeholder="{if ($lang = 'ru') then 'Искать' else 'Search'}"
|
||||||
value="{session:get('searchQuery')}"
|
value="{session:get('searchQuery')}"
|
||||||
aria-label="Search" />
|
aria-label="Search">
|
||||||
|
{if (exists(session:get('searchQuery'))) then
|
||||||
|
attribute disabled {"1"} }
|
||||||
|
</input>
|
||||||
{if (not(session:get('searchQuery'))) then
|
{if (not(session:get('searchQuery'))) then
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
<svg id="abv-search-icon" xmlns="http://www.w3.org/2000/svg"
|
<svg id="abv-search-icon" xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|
Loading…
Add table
Reference in a new issue