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')
|
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;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue