]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fixes #657: use data-autofirst parameter for awesomeplete 803/head
authorArthurHoaro <arthur@hoa.ro>
Sat, 11 Mar 2017 12:47:07 +0000 (13:47 +0100)
committerArthurHoaro <arthur@hoa.ro>
Sat, 11 Mar 2017 12:48:47 +0000 (13:48 +0100)
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
tpl/default/page.header.html

index 94370203bf2b2b8cf0fe014129569db4907b2008..57ef4567a8ee754c1f308c3b153e6d0188223b86 100644 (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>
index b76fc03e003a111221085b0440d2caf3cc809e2a..dcc0d5a14962c0dddeac5486eeef6fdf3df7b197 100644 (file)
                  {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>