From 792b26789fe9f6245a155e47aea0273917ac33d7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Mar 2017 13:47:07 +0100 Subject: [PATCH] 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(-) diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 9437020..57ef456 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 b76fc03..dcc0d5a 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}" >