diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js index 457d1ff125..5c0efdba93 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js @@ -322,8 +322,9 @@ ve.ui.MWTemplateDialog.prototype.initialize = function () { // Properties this.bookletLayout = new ve.ui.MWTwoPaneTransclusionDialogLayout( this.constructor.static.bookletLayoutConfig ); + // TODO: Remove once all references are gone. + this.sidebar = this.bookletLayout.sidebar; - this.sidebar = new ve.ui.MWTransclusionOutlineWidget(); this.sidebar.connect( this, { focusPageByName: 'focusPart', filterPagesByName: 'onFilterPagesByName', diff --git a/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js b/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js index 58d9813eea..ed05469887 100644 --- a/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js +++ b/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js @@ -32,6 +32,7 @@ ve.ui.MWTwoPaneTransclusionDialogLayout = function VeUiMWTwoPaneTransclusionDial expanded: this.expanded } ); this.setContentPanel( this.stackLayout ); + this.sidebar = new ve.ui.MWTransclusionOutlineWidget(); this.autoFocus = config.autoFocus === undefined || !!config.autoFocus; this.outlineVisible = false; this.outlined = !!config.outlined;