FIX: do not destroy current draft when *NOT* abandoning the current reply

This commit is contained in:
Régis Hanol 2013-12-05 18:08:33 +01:00
parent 2db3cfb16b
commit 6b618a805a

View File

@ -340,8 +340,8 @@ Discourse.ComposerController = Discourse.Controller.extend({
self.destroyDraft();
self.get('model').clearState();
self.close();
promise.resolve();
}
promise.resolve();
});
} else {
// it is possible there is some sort of crazy draft with no body ... just give up on it