mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-14 19:35:38 +00:00
Merge "Restore autosave for new topic when only title was provided"
This commit is contained in:
commit
d7f30dcd19
|
@ -388,7 +388,10 @@ function init( $container, state ) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if ( storage.get( 'reply/' + utils.NEW_TOPIC_COMMENT_ID + '/saveable' ) ) {
|
||||
if (
|
||||
storage.get( 'reply/' + utils.NEW_TOPIC_COMMENT_ID + '/saveable' ) ||
|
||||
storage.get( 'reply/' + utils.NEW_TOPIC_COMMENT_ID + '/title' )
|
||||
) {
|
||||
mode = storage.get( 'reply/' + utils.NEW_TOPIC_COMMENT_ID + '/mode' );
|
||||
setupController( utils.NEW_TOPIC_COMMENT_ID, $( [] ), mode, true, !state.firstLoad );
|
||||
} else if ( mw.config.get( 'wgDiscussionToolsStartNewTopicTool' ) ) {
|
||||
|
|
Loading…
Reference in a new issue