mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "Fix broken reference to the new EditPanel class"
This commit is contained in:
commit
dfb107a22a
|
@ -216,7 +216,7 @@ ve.ui.MWReferenceDialog.prototype.updateExtendsWarningFromRef = function ( ref )
|
||||||
const itemNode = list.getItemNode( list.keys.indexOf( ref.extendsRef ) );
|
const itemNode = list.getItemNode( list.keys.indexOf( ref.extendsRef ) );
|
||||||
const parentRefText = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element.text();
|
const parentRefText = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element.text();
|
||||||
// TODO extends i18n
|
// TODO extends i18n
|
||||||
this.extendsWarning.setLabel( new OO.ui.HtmlSnippet(
|
this.editPanel.extendsWarning.setLabel( new OO.ui.HtmlSnippet(
|
||||||
`${ mw.msg( 'cite-ve-dialog-reference-editing-extends' ) }</br>${ parentRefText }`
|
`${ mw.msg( 'cite-ve-dialog-reference-editing-extends' ) }</br>${ parentRefText }`
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue