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:
parent
43c7320f55
commit
1e2f2a244c
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue