mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Clicking Reply with quoted text should work like quote button
Before this patch, it would ask you if you were sure you wanted to cancel your draft even if you didn't input anything.
This commit is contained in:
@@ -131,15 +131,15 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
||||
draftSequence: topic.get('draft_sequence')
|
||||
};
|
||||
|
||||
if (quotedText) { opts.quote = quotedText; }
|
||||
|
||||
if(post && post.get("post_number") !== 1){
|
||||
opts.post = post;
|
||||
} else {
|
||||
opts.topic = topic;
|
||||
}
|
||||
|
||||
composerController.open(opts).then(function() {
|
||||
composerController.appendText(quotedText);
|
||||
});
|
||||
composerController.open(opts);
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user