Merge pull request #1852 from velesin/search_keyboard_nav_fix

FIX: keyboard navigation in the search box results dropdown
This commit is contained in:
Régis Hanol 2014-01-21 08:56:22 -08:00
commit 3c2d4070a8

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);
}