FIX: Clear edit post when clicking reply.

This commit is contained in:
Guo Xiang Tan 2015-08-13 20:17:01 +08:00
parent 3ef66b1dca
commit 9fbab34e57

View File

@ -369,10 +369,11 @@ const Composer = RestModel.extend({
const composer = this;
if (!replyBlank &&
(opts.action !== this.get('action') || ((opts.reply || opts.action === this.EDIT) && this.get('replyDirty')))) {
((opts.reply || opts.action === this.EDIT) && this.get('replyDirty'))) {
return;
}
if (opts.action === REPLY && this.get('action') === EDIT) this.set('reply', '');
if (!opts.draftKey) throw 'draft key is required';
if (opts.draftSequence === null) throw 'draft sequence is required';