mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
FIX: quote text twice overwrites the first quote
This commit is contained in:
parent
cb9fb2acfa
commit
3cfd2dd667
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user