From 07328e5e4b4b5789105377be6c9032a8b7b8aad8 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 27 Aug 2013 11:28:54 -0400 Subject: [PATCH] FIX: Navigating to a new topic after editing one was leaving edit controls open. --- app/assets/javascripts/discourse/routes/topic_route.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/routes/topic_route.js b/app/assets/javascripts/discourse/routes/topic_route.js index 8e7a01cccd3..fbe4253bad5 100644 --- a/app/assets/javascripts/discourse/routes/topic_route.js +++ b/app/assets/javascripts/discourse/routes/topic_route.js @@ -101,7 +101,10 @@ Discourse.TopicRoute = Discourse.Route.extend({ }, setupController: function(controller, model) { - controller.set('model', model); + controller.setProperties({ + model: model, + editingTopic: false + }); this.controllerFor('header').setProperties({ topic: model,