FIX: Showing suggested topics when composing a reply

This commit is contained in:
Robin Ward 2013-09-10 20:00:04 -04:00
parent f2a1ef8d7d
commit 30eed4c8b4
2 changed files with 8 additions and 0 deletions

View File

@ -198,6 +198,9 @@ Discourse.ComposerController = Discourse.Controller.extend({
open: function(opts) {
if (!opts) opts = {};
var composerMessages = this.get('controllers.composerMessages');
composerMessages.reset();
var promise = opts.promise || Ember.Deferred.create();
opts.promise = promise;
this.set('typedReply', false);

View File

@ -26,6 +26,11 @@ Discourse.ComposerMessagesController = Ember.ArrayController.extend({
closeMessage: function(message) {
this.removeObject(message);
},
reset: function() {
this.clear();
this.set('messagesByTemplate', {});
}
});