FIX: keyboard navigation in the search box results dropdown

This commit is contained in:
Wojciech Zawistowski 2014-01-21 17:17:40 +01:00
parent 5f46ce7329
commit e9c0445769
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ Discourse.SearchController = Em.ArrayController.extend(Discourse.Presence, {
searchTerm: Discourse.debouncePromise(function(term, typeFilter) {
var searchController = this;
this.set('count', 0);
this.set('resultCount', 0);
var searcher = Discourse.Search.forTerm(term, {
typeFilter: typeFilter,
@ -48,7 +48,7 @@ Discourse.SearchController = Em.ArrayController.extend(Discourse.Presence, {
})
.value();
searchController.set('count', index);
searchController.set('resultCount', index);
searchController.set('content', results);
}