FIX: Navigating to a new topic after editing one was leaving edit controls open.

This commit is contained in:
Robin Ward 2013-08-27 11:28:54 -04:00
parent 90fef936dc
commit 07328e5e4b

View file

@ -101,7 +101,10 @@ Discourse.TopicRoute = Discourse.Route.extend({
}, },
setupController: function(controller, model) { setupController: function(controller, model) {
controller.set('model', model); controller.setProperties({
model: model,
editingTopic: false
});
this.controllerFor('header').setProperties({ this.controllerFor('header').setProperties({
topic: model, topic: model,