aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-03-11 13:47:07 +0100
committerArthurHoaro <arthur@hoa.ro>2017-03-11 13:48:47 +0100
commit792b26789fe9f6245a155e47aea0273917ac33d7 (patch)
tree1f68a1394f38dbf699640fd61b444ac0c4276a2a /tpl/default
parent844021ab4c0d3dd6c26704648a736fa53244c914 (diff)
downloadShaarli-792b26789fe9f6245a155e47aea0273917ac33d7.tar.gz
Shaarli-792b26789fe9f6245a155e47aea0273917ac33d7.tar.zst
Shaarli-792b26789fe9f6245a155e47aea0273917ac33d7.zip
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.
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/linklist.html2
-rw-r--r--tpl/default/page.header.html2
2 files changed, 2 insertions, 2 deletions
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 @@
34 {if="!empty($search_tags)"} 34 {if="!empty($search_tags)"}
35 value="{$search_tags}" 35 value="{$search_tags}"
36 {/if} 36 {/if}
37 autocomplete="off" data-multiple data-minChars="1" 37 autocomplete="off" data-multiple data-autofirst data-minChars="1"
38 data-list="{loop="$tags"}{$key}, {/loop}" 38 data-list="{loop="$tags"}{$key}, {/loop}"
39 > 39 >
40 <button type="submit" class="search-button"><i class="fa fa-search"></i></button> 40 <button type="submit" class="search-button"><i class="fa fa-search"></i></button>
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 @@
114 {if="!empty($search_tags)"} 114 {if="!empty($search_tags)"}
115 value="{$search_tags}" 115 value="{$search_tags}"
116 {/if} 116 {/if}
117 autocomplete="off" data-multiple data-minChars="1" 117 autocomplete="off" data-multiple data-autofirst data-minChars="1"
118 data-list="{loop="$tags"}{$key}, {/loop}" 118 data-list="{loop="$tags"}{$key}, {/loop}"
119 > 119 >
120 <button type="submit" class="search-button"><i class="fa fa-search"></i></button> 120 <button type="submit" class="search-button"><i class="fa fa-search"></i></button>