FIX: restore category when opening draft

This commit is contained in:
verg 2014-02-10 15:30:08 -05:00
parent f1a9e52d7e
commit dd7fa2d946

View File

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