correct no highlighting categories when clicked

This commit is contained in:
Sam 2013-07-23 13:24:39 +10:00
parent 060c79ecc0
commit 3ad7d74c52

View File

@ -38,7 +38,12 @@ Discourse.ListCategoriesRoute = Discourse.Route.extend({
afterModel: function(categoryList) { afterModel: function(categoryList) {
this.controllerFor('list').setProperties({ this.controllerFor('list').setProperties({
canCreateCategory: categoryList.get('can_create_category'), canCreateCategory: categoryList.get('can_create_category'),
canCreateTopic: categoryList.get('can_create_topic'), canCreateTopic: categoryList.get('can_create_topic')
});
},
enter: function() {
this.controllerFor('list').setProperties({
filterMode: 'categories', filterMode: 'categories',
category: null category: null
}); });