2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

regression and missing filter

This commit is contained in:
Sam 2015-04-02 16:30:34 +11:00
parent 4dbd065026
commit 2a2bd3e946
2 changed files with 7 additions and 2 deletions

View file

@ -42,7 +42,12 @@ Discourse.TopicList = Discourse.Model.extend({
params = this.get('params');
params.order = order || params.order;
params.ascending = ascending || params.ascending || true;
if (ascending === undefined) {
params.ascending = ascending;
} else {
params.ascending = ascending;
}
this.set('loaded', false);
var finder = finderFor(this.get('filter'), params);

View file

@ -64,7 +64,7 @@ module Discourse
end
def self.anonymous_filters
@anonymous_filters ||= [:latest, :top, :categories]
@anonymous_filters ||= [:latest, :top, :categories, :search]
end
def self.logged_in_filters