When you click Quote Reply, and then cancel the reply, don't ask if you're sure.

This commit is contained in:
Neil Lalonde
2013-11-15 13:13:42 -05:00
parent 01523554f3
commit e01ce546e8
3 changed files with 17 additions and 3 deletions
@@ -117,12 +117,11 @@ 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')) {
composerController.appendText(quotedText);
} else {
composerController.open(composerOpts).then(function() {
composerController.appendText(quotedText);
});
composerController.open(composerOpts);
}
this.set('buffer', '');
return false;