mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-05 03:08:37 +00:00
Merge "Use page ID string instead of object reference"
This commit is contained in:
commit
6f052b928d
|
@ -113,7 +113,7 @@ ve.ui.MWTemplateDialog.prototype.onReplacePart = function ( removed, added ) {
|
|||
removed.disconnect( this );
|
||||
}
|
||||
if ( this.loaded && !this.preventReselection && partPage.isActive() ) {
|
||||
reselect = this.bookletLayout.findClosestPage( partPage );
|
||||
reselect = this.bookletLayout.findClosestPage( partPage ).getName();
|
||||
}
|
||||
removePages.push( partPage );
|
||||
this.bookletLayout.removePages( removePages );
|
||||
|
@ -153,7 +153,7 @@ ve.ui.MWTemplateDialog.prototype.onReplacePart = function ( removed, added ) {
|
|||
}
|
||||
}
|
||||
} else if ( reselect ) {
|
||||
this.transclusions.focusPart( reselect.getName() );
|
||||
this.transclusions.focusPart( reselect );
|
||||
}
|
||||
|
||||
if ( this.loaded && ( added || removed ) ) {
|
||||
|
|
Loading…
Reference in a new issue