FEATURE: accept category_id as new-topic param to better support subcategory

This commit is contained in:
Arpit Jalan
2015-05-01 21:40:28 +05:30
parent 8521ee24b1
commit 480cea7284
4 changed files with 7 additions and 10 deletions

View File

@ -148,8 +148,8 @@ const ApplicationRoute = Discourse.Route.extend(Discourse.OpenComposer, {
this.render(w, {into: 'modal/topic-bulk-actions', outlet: 'bulkOutlet', controller: factory ? controllerName : 'topic-bulk-actions'});
},
createNewTopicViaParams: function(title, body, category) {
this.openComposerWithParams(this.controllerFor('discovery/topics'), title, body, category);
createNewTopicViaParams: function(title, body, category_id) {
this.openComposerWithParams(this.controllerFor('discovery/topics'), title, body, category_id);
}
},