mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Fix logical conflicts from the transclusion merge."
This commit is contained in:
commit
59bf9966b4
|
@ -176,7 +176,7 @@ ve.dm.MWTransclusionModel.prototype.getPlainObject = function () {
|
|||
|
||||
// Use single-part format when possible
|
||||
if ( obj.parts.length === 1 ) {
|
||||
obj = this.content.parts[0].template;
|
||||
obj = obj.parts[0].template;
|
||||
}
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -97,11 +97,10 @@ ve.ui.MWTransclusionDialog.prototype.onClose = function ( action ) {
|
|||
|
||||
// TODO: Wrap attribute changes in ve.dm.SurfaceFragment
|
||||
surfaceModel.change(
|
||||
ve.dm.Transaction.newFromAttributeChange(
|
||||
ve.dm.Transaction.newFromAttributeChanges(
|
||||
surfaceModel.getDocument(),
|
||||
this.node.getOffset(),
|
||||
'mw',
|
||||
this.transclusion.getPlainObject()
|
||||
{ 'mw': this.transclusion.getPlainObject() }
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue