Revert "FIX: restore category when opening draft"

This reverts commit dd7fa2d946.

Unfortunately this introduced a regression where editing a post, then
replying soon after would leave you in edit mode.
This commit is contained in:
Robin Ward 2014-02-14 12:06:58 -05:00
parent 067b220a62
commit 97aa2c8dfe

View File

@ -306,10 +306,8 @@ Discourse.ComposerController = Discourse.Controller.extend({
}
}
if ( !composer ) {
composer = Discourse.Composer.create();
composer.open(opts);
}
composer = composer || Discourse.Composer.create();
composer.open(opts);
this.set('model', composer);
composer.set('composeState', Discourse.Composer.OPEN);