FIX: restore category when opening draft

This commit is contained in:
verg 2014-02-10 15:30:08 -05:00
parent f1a9e52d7e
commit dd7fa2d946
1 changed files with 4 additions and 2 deletions

View File

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