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:
Robin Ward 2015-09-25 14:30:20 -04:00
parent 43c7320f55
commit 1e2f2a244c
1 changed files with 3 additions and 3 deletions

View File

@ -131,15 +131,15 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
draftSequence: topic.get('draft_sequence') draftSequence: topic.get('draft_sequence')
}; };
if (quotedText) { opts.quote = quotedText; }
if(post && post.get("post_number") !== 1){ if(post && post.get("post_number") !== 1){
opts.post = post; opts.post = post;
} else { } else {
opts.topic = topic; opts.topic = topic;
} }
composerController.open(opts).then(function() { composerController.open(opts);
composerController.appendText(quotedText);
});
} }
return false; return false;
}, },