mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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 buffer = this.get('buffer');
|
||||||
var quotedText = Discourse.Quote.build(post, buffer);
|
var quotedText = Discourse.Quote.build(post, buffer);
|
||||||
composerOpts.quote = quotedText;
|
composerOpts.quote = quotedText;
|
||||||
if (composerController.get('content.replyDirty')) {
|
if (composerController.get('content.viewOpen') || composerController.get('content.viewDraft')) {
|
||||||
composerController.appendText(quotedText);
|
composerController.appendText(quotedText);
|
||||||
} else {
|
} else {
|
||||||
composerController.open(composerOpts);
|
composerController.open(composerOpts);
|
||||||
|
Loading…
Reference in New Issue
Block a user