Merge branch 'highlight-first-user-autocomplete-option' into 'master'
Highlight first user autocomplete option See merge request !7520
This commit is contained in:
commit
aa841e6fe1
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
|||
DefaultOptions: {
|
||||
sorter: function(query, items, searchKey) {
|
||||
// Highlight first item only if at least one char was typed
|
||||
this.setting.highlightFirst = query.length > 0;
|
||||
this.setting.highlightFirst = this.setting.alwaysHighlightFirst || query.length > 0;
|
||||
if ((items[0].name != null) && items[0].name === 'loading') {
|
||||
return items;
|
||||
}
|
||||
|
@ -112,6 +112,7 @@
|
|||
insertTpl: '${atwho-at}${username}',
|
||||
searchKey: 'search',
|
||||
data: ['loading'],
|
||||
alwaysHighlightFirst: true,
|
||||
callbacks: {
|
||||
sorter: this.DefaultOptions.sorter,
|
||||
filter: this.DefaultOptions.filter,
|
||||
|
|
Loading…
Reference in a new issue