mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
regression and missing filter
This commit is contained in:
parent
4dbd065026
commit
2a2bd3e946
2 changed files with 7 additions and 2 deletions
|
@ -42,7 +42,12 @@ Discourse.TopicList = Discourse.Model.extend({
|
||||||
params = this.get('params');
|
params = this.get('params');
|
||||||
|
|
||||||
params.order = order || params.order;
|
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);
|
this.set('loaded', false);
|
||||||
var finder = finderFor(this.get('filter'), params);
|
var finder = finderFor(this.get('filter'), params);
|
||||||
|
|
|
@ -64,7 +64,7 @@ module Discourse
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.anonymous_filters
|
def self.anonymous_filters
|
||||||
@anonymous_filters ||= [:latest, :top, :categories]
|
@anonymous_filters ||= [:latest, :top, :categories, :search]
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.logged_in_filters
|
def self.logged_in_filters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue