Fixes #657: use data-autofirst parameter for awesomeplete

data-autofirst automatically selects the first item of the list of choice automatically. You just have to press enter to use it.
This commit is contained in:
ArthurHoaro 2017-03-11 13:47:07 +01:00
parent 844021ab4c
commit 792b26789f
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@
{if="!empty($search_tags)"}
value="{$search_tags}"
{/if}
autocomplete="off" data-multiple data-minChars="1"
autocomplete="off" data-multiple data-autofirst data-minChars="1"
data-list="{loop="$tags"}{$key}, {/loop}"
>
<button type="submit" class="search-button"><i class="fa fa-search"></i></button>

View file

@ -114,7 +114,7 @@
{if="!empty($search_tags)"}
value="{$search_tags}"
{/if}
autocomplete="off" data-multiple data-minChars="1"
autocomplete="off" data-multiple data-autofirst data-minChars="1"
data-list="{loop="$tags"}{$key}, {/loop}"
>
<button type="submit" class="search-button"><i class="fa fa-search"></i></button>