mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Merge "Adjust uses of renamed PreviewWidget to PreviewElement"
This commit is contained in:
commit
a5d3a4dfae
|
@ -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