FIX: a js error when reloading /admin/site_settings/category/:id

This commit is contained in:
Neil Lalonde 2013-11-14 16:50:34 -05:00
parent d9e4eec49f
commit 726b985ece
2 changed files with 4 additions and 1 deletions

View File

@ -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() {

View File

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