From e9c04457690be4503eff6080c6a40a7063a8b71d Mon Sep 17 00:00:00 2001 From: Wojciech Zawistowski Date: Tue, 21 Jan 2014 17:17:40 +0100 Subject: [PATCH] FIX: keyboard navigation in the search box results dropdown --- .../javascripts/discourse/controllers/search_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/search_controller.js b/app/assets/javascripts/discourse/controllers/search_controller.js index d2dde8267f8..8b45c945bfb 100644 --- a/app/assets/javascripts/discourse/controllers/search_controller.js +++ b/app/assets/javascripts/discourse/controllers/search_controller.js @@ -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); }