mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Fix another surfaceModel.getFragment() in MWCitationDialog
Change-Id: Ic12652bf3d53396f84d558595ce1e4a2d0a22796
This commit is contained in:
parent
16ec8ffdcf
commit
d335e59330
|
@ -90,7 +90,7 @@ ve.ui.MWCitationDialog.prototype.saveChanges = function () {
|
||||||
obj = this.transclusion.getPlainObject();
|
obj = this.transclusion.getPlainObject();
|
||||||
|
|
||||||
if ( !this.referenceModel ) {
|
if ( !this.referenceModel ) {
|
||||||
surfaceModel.getFragment().collapseRangeToEnd();
|
this.getFragment().collapseRangeToEnd();
|
||||||
this.referenceModel = new ve.dm.MWReferenceModel();
|
this.referenceModel = new ve.dm.MWReferenceModel();
|
||||||
this.referenceModel.insertInternalItem( surfaceModel );
|
this.referenceModel.insertInternalItem( surfaceModel );
|
||||||
this.referenceModel.insertReferenceNode( surfaceFragment );
|
this.referenceModel.insertReferenceNode( surfaceFragment );
|
||||||
|
|
Loading…
Reference in a new issue