From 792b26789fe9f6245a155e47aea0273917ac33d7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Mar 2017 13:47:07 +0100 Subject: 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. --- tpl/default/linklist.html | 2 +- tpl/default/page.header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl') 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}" > -- cgit v1.2.3