mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 09:15:27 +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();
|
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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user