mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
871ba32343
refs #5343, #5652 - implements basic post and user search using selectize input - queries minimal API endpoint and refreshes results on search input focus if results are older than 60 seconds
16 lines
519 B
Handlebars
16 lines
519 B
Handlebars
{{gh-selectize
|
|
placeholder="Search"
|
|
selection=selection
|
|
content=content
|
|
loading=isLoading
|
|
optionValuePath="content.id"
|
|
optionLabelPath="content.title"
|
|
optionGroupPath="content.category"
|
|
openOnFocus=false
|
|
maxItems="1"
|
|
on-init="onInit"
|
|
on-focus="onFocus"
|
|
on-blur="onBlur"
|
|
select-item="openSelected"
|
|
update-filter="onUpdateFilter"}}
|
|
<button class="gh-nav-search-button" {{action "focusInput"}}><i class="icon-search"></i><span class="sr-only">Search</span></button>
|