FIX: quote text twice overwrites the first quote

This commit is contained in:
Neil Lalonde 2013-12-03 16:39:21 -05:00
parent cb9fb2acfa
commit 3cfd2dd667

View File

@ -118,7 +118,7 @@ Discourse.QuoteButtonController = Discourse.Controller.extend({
var buffer = this.get('buffer');
var quotedText = Discourse.Quote.build(post, buffer);
composerOpts.quote = quotedText;
if (composerController.get('content.replyDirty')) {
if (composerController.get('content.viewOpen') || composerController.get('content.viewDraft')) {
composerController.appendText(quotedText);
} else {
composerController.open(composerOpts);