From b7bdf2d8677b49c9eaff6aed9f61012c3528b14b Mon Sep 17 00:00:00 2001 From: Thalia Date: Wed, 23 Sep 2015 18:56:10 +0100 Subject: [PATCH] Adjust uses of renamed PreviewWidget to PreviewElement Depends on I516b87f3be in VE core. Change-Id: I9ad4bab3fff0bf0fb8a79673dbe67be4a9b2c363 --- modules/ve-mw/ui/contextitems/ve.ui.MWReferenceContextItem.js | 2 +- modules/ve-mw/ui/widgets/ve.ui.MWReferenceSearchWidget.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/ui/contextitems/ve.ui.MWReferenceContextItem.js b/modules/ve-mw/ui/contextitems/ve.ui.MWReferenceContextItem.js index 1a67219b7f..2295a1ae8d 100644 --- a/modules/ve-mw/ui/contextitems/ve.ui.MWReferenceContextItem.js +++ b/modules/ve-mw/ui/contextitems/ve.ui.MWReferenceContextItem.js @@ -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() ) ); diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWReferenceSearchWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWReferenceSearchWidget.js index 3fb84936dc..98a3eea62e 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWReferenceSearchWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWReferenceSearchWidget.js @@ -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() ) );