Adjust uses of renamed PreviewWidget to PreviewElement

Depends on I516b87f3be in VE core.

Change-Id: I9ad4bab3fff0bf0fb8a79673dbe67be4a9b2c363
This commit is contained in:
Thalia 2015-09-23 18:56:10 +01:00 committed by Jforrester
parent 207f55dc8c
commit b7bdf2d867
2 changed files with 2 additions and 2 deletions

View file

@ -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() )
);

View file

@ -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() )
);