diff --git a/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js b/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js index e9e8e63224..4d69d6ed55 100644 --- a/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js +++ b/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js @@ -47,7 +47,7 @@ ve.ui.MWTwoPaneTransclusionDialogLayout = function VeUiMWTwoPaneTransclusionDial this.sidebar.connect( this, { filterPagesByName: 'onFilterPagesByName', sidebarPartSelected: 'onSidebarItemSelected', - templateParameterAdded: 'onSidebarItemSelected' + templateParameterSelected: 'onSidebarItemSelected' } ); // Event 'focus' does not bubble, but 'focusin' does this.stackLayout.$element.on( 'focusin', this.onStackLayoutFocus.bind( this ) ); diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js index 4bf2c584ed..4422e0a86b 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js @@ -59,7 +59,7 @@ OO.inheritClass( ve.ui.MWTransclusionOutlineTemplateWidget, ve.ui.MWTransclusion /* Events */ /** - * @event templateParameterAdded + * @event templateParameterSelected * @param {string} pageName Unique id of the {@see OO.ui.BookletLayout} page, e.g. something like * "part_1" or "part_1/param1". * @param {boolean} soft If true, focus should stay in the sidebar. @@ -308,7 +308,7 @@ ve.ui.MWTransclusionOutlineTemplateWidget.prototype.onTemplateParameterSpaceDown * @param {OO.ui.OptionWidget} item * @param {boolean} selected * @param {boolean} soft If true, focus should stay in the sidebar. - * @fires templateParameterAdded + * @fires templateParameterSelected */ ve.ui.MWTransclusionOutlineTemplateWidget.prototype.toggleParameter = function ( item, selected, soft ) { var paramName = item.getData(), @@ -323,7 +323,7 @@ ve.ui.MWTransclusionOutlineTemplateWidget.prototype.toggleParameter = function ( this.updateUnusedParameterToggleState(); if ( param && selected ) { - this.emit( 'templateParameterAdded', param.getId(), soft ); + this.emit( 'templateParameterSelected', param.getId(), soft ); } }; diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineWidget.js index b4d0aa8475..afcd2012e5 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineWidget.js @@ -97,7 +97,7 @@ ve.ui.MWTransclusionOutlineWidget.prototype.addPartWidget = function ( part, new widget.connect( this, { // We can forward these events as is. The parameter's unique ids are reused as page // names in {@see ve.ui.MWTemplateDialog.onAddParameter}. - templateParameterAdded: [ 'emit', 'templateParameterAdded' ], + templateParameterSelected: [ 'emit', 'templateParameterSelected' ], filterParametersById: 'onFilterParametersByName' } ); } else if ( part instanceof ve.dm.MWTemplatePlaceholderModel ) {