mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Merge "MWCategoryInputWidget: missing 'new' for cached redirected optionwidgets"
This commit is contained in:
commit
fbc835be12
|
@ -238,7 +238,7 @@ ve.ui.MWCategoryInputWidget.prototype.getCategoryWidgetFromName = function ( nam
|
||||||
optionWidget, labelText;
|
optionWidget, labelText;
|
||||||
if ( cachedData && cachedData.redirectFrom ) {
|
if ( cachedData && cachedData.redirectFrom ) {
|
||||||
labelText = mw.Title.newFromText( cachedData.redirectFrom[ 0 ] ).getMainText();
|
labelText = mw.Title.newFromText( cachedData.redirectFrom[ 0 ] ).getMainText();
|
||||||
optionWidget = OO.ui.MenuOptionWidget( {
|
optionWidget = new OO.ui.MenuOptionWidget( {
|
||||||
data: name,
|
data: name,
|
||||||
autoFitLabel: false,
|
autoFitLabel: false,
|
||||||
label: $( '<span>' )
|
label: $( '<span>' )
|
||||||
|
|
Loading…
Reference in a new issue