mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: a js error when reloading /admin/site_settings/category/:id
This commit is contained in:
parent
d9e4eec49f
commit
726b985ece
2 changed files with 4 additions and 1 deletions
|
@ -13,7 +13,7 @@ Discourse.AdminSiteSettingsController = Ember.ArrayController.extend(Discourse.P
|
|||
/**
|
||||
The list of settings based on the current filters
|
||||
|
||||
@property filteredContent
|
||||
@property filterContent
|
||||
**/
|
||||
filterContent: function() {
|
||||
|
||||
|
|
|
@ -9,5 +9,8 @@
|
|||
Discourse.AdminSiteSettingsCategoryRoute = Discourse.Route.extend({
|
||||
model: function(params) {
|
||||
this.controllerFor('adminSiteSettingsCategory').set('categoryNameKey', params.category_id);
|
||||
return this.modelFor('adminSiteSettings').find(function(category) {
|
||||
return category.nameKey === params.category_id;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue