mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Remove highlighting when typing in a search field
Bug: T311204 Change-Id: I583c02df3def6cfeb347e9b63045b62e1d735e24
This commit is contained in:
parent
fd86b7f38d
commit
079a1ce6ff
|
@ -104,7 +104,7 @@ ve.ui.MWTransclusionOutlineWidget.prototype.addPartWidget = function ( part, new
|
|||
// 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' ],
|
||||
filterParametersById: [ 'emit', 'filterPagesByName' ]
|
||||
filterParametersById: 'onFilterParametersByName'
|
||||
} );
|
||||
} else if ( part instanceof ve.dm.MWTemplatePlaceholderModel ) {
|
||||
widget = new ve.ui.MWTransclusionOutlinePlaceholderWidget( part );
|
||||
|
@ -200,3 +200,13 @@ ve.ui.MWTransclusionOutlineWidget.prototype.clear = function () {
|
|||
}
|
||||
this.partWidgets = {};
|
||||
};
|
||||
|
||||
/**
|
||||
* @private
|
||||
*
|
||||
* @param {Object} parameter
|
||||
*/
|
||||
ve.ui.MWTransclusionOutlineWidget.prototype.onFilterParametersByName = function ( parameter ) {
|
||||
this.emit( 'filterPagesByName', parameter );
|
||||
this.setSelectionByPageName();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue