mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 12:18:44 +08:00
FIX: restore category when opening draft
This commit is contained in:
parent
f1a9e52d7e
commit
dd7fa2d946
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user