Redundant with CSS 'text-overflow: ellipsis', which is already applied.
Aside from ellipsis overflow, autoEllipsis() was also serving as indirect
caller of `highlightText( option.matchText )` and `attr('title')`,
which we want to keep, so leave that in its place.
Bug: T160804
Change-Id: I550183750d66d769cc9c960150a2349d1b9181aa
'mediawiki.api',
'jquery.byteLimit',
// TitleOptionWidget
- 'jquery.autoEllipsis',
+ 'jquery.highlightText',
],
'messages' => [
// NamespaceInputWidget
} );
// Highlight matching parts of link suggestion
- this.$label.autoEllipsis( { hasSpan: false, tooltip: true, matchText: config.query } );
+ this.$label
+ .highlightText( config.query )
+ .attr( 'title', config.data );
if ( config.missing ) {
this.$label.addClass( 'new' );