mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 08:20:02 +00:00
Use useView mode of PreviewElement for re-use search widget
Generating the preview from the model is much slower and not required in this context. Bug: T310318 Change-Id: I73ab222c268939eb542aaae8b529446eae45abc7
This commit is contained in:
parent
56da1e461b
commit
cada626709
|
@ -147,7 +147,8 @@ ve.ui.MWReferenceSearchWidget.prototype.buildIndex = function () {
|
|||
n++;
|
||||
var refModel = ve.dm.MWReferenceModel.static.newFromReferenceNode( refNode );
|
||||
var view = new ve.ui.MWPreviewElement(
|
||||
this.internalList.getItemNode( refModel.getListIndex() )
|
||||
this.internalList.getItemNode( refModel.getListIndex() ),
|
||||
{ useView: true }
|
||||
);
|
||||
|
||||
var refGroup = refModel.getGroup();
|
||||
|
|
Loading…
Reference in a new issue