mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Adjust uses of renamed PreviewWidget to PreviewElement
Depends on I516b87f3be in VE core. Change-Id: I9ad4bab3fff0bf0fb8a79673dbe67be4a9b2c363
This commit is contained in:
parent
207f55dc8c
commit
b7bdf2d867
|
@ -51,7 +51,7 @@ ve.ui.MWReferenceContextItem.prototype.getRendering = function () {
|
|||
var refModel;
|
||||
if ( this.model.isEditable() ) {
|
||||
refModel = ve.dm.MWReferenceModel.static.newFromReferenceNode( this.model );
|
||||
this.view = new ve.ui.PreviewWidget(
|
||||
this.view = new ve.ui.PreviewElement(
|
||||
refModel.getDocument().getInternalList().getItemNode( refModel.getListIndex() )
|
||||
);
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ ve.ui.MWReferenceSearchWidget.prototype.buildIndex = function () {
|
|||
// Only increment counter for real references
|
||||
n++;
|
||||
refModel = ve.dm.MWReferenceModel.static.newFromReferenceNode( refNode );
|
||||
view = new ve.ui.PreviewWidget(
|
||||
view = new ve.ui.PreviewElement(
|
||||
refModel.getDocument().getInternalList().getItemNode( refModel.getListIndex() )
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue