FIX: keyboard navigation in the search box results dropdown
This commit is contained in:
parent
5f46ce7329
commit
e9c0445769
|
@ -23,7 +23,7 @@ Discourse.SearchController = Em.ArrayController.extend(Discourse.Presence, {
|
||||||
|
|
||||||
searchTerm: Discourse.debouncePromise(function(term, typeFilter) {
|
searchTerm: Discourse.debouncePromise(function(term, typeFilter) {
|
||||||
var searchController = this;
|
var searchController = this;
|
||||||
this.set('count', 0);
|
this.set('resultCount', 0);
|
||||||
|
|
||||||
var searcher = Discourse.Search.forTerm(term, {
|
var searcher = Discourse.Search.forTerm(term, {
|
||||||
typeFilter: typeFilter,
|
typeFilter: typeFilter,
|
||||||
|
@ -48,7 +48,7 @@ Discourse.SearchController = Em.ArrayController.extend(Discourse.Presence, {
|
||||||
})
|
})
|
||||||
.value();
|
.value();
|
||||||
|
|
||||||
searchController.set('count', index);
|
searchController.set('resultCount', index);
|
||||||
searchController.set('content', results);
|
searchController.set('content', results);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue