From: ArthurHoaro Date: Sat, 11 Mar 2017 12:47:07 +0000 (+0100) Subject: Fixes #657: use data-autofirst parameter for awesomeplete X-Git-Tag: v0.9.0~39^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=792b26789fe9f6245a155e47aea0273917ac33d7 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. --- diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 94370203..57ef4567 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -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}" > diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index b76fc03e..dcc0d5a1 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -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}" >