From 66d56a8b936f0165468414dec76adccc7d95bcd6 Mon Sep 17 00:00:00 2001 From: tms Date: Sun, 17 Feb 2013 02:21:49 -0500 Subject: [PATCH] Correctly set the typeFilter when the user clicks "show more" --- .../javascripts/discourse/views/search/search_view.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/views/search/search_view.js.coffee b/app/assets/javascripts/discourse/views/search/search_view.js.coffee index d4fdba0a22c..eacc6c539da 100644 --- a/app/assets/javascripts/discourse/views/search/search_view.js.coffee +++ b/app/assets/javascripts/discourse/views/search/search_view.js.coffee @@ -92,8 +92,8 @@ window.Discourse.SearchView = Ember.View.extend Discourse.Presence, count ).property('content') - moreOfType: (e) -> - @set('typeFilter', e.context) + moreOfType: (type) -> + @set('typeFilter', type) false cancelType: ->