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