mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-13 17:48:17 +00:00
Merge "Don't set a ParameterPage as next selection after delete"
This commit is contained in:
commit
98ec1db594
|
@ -308,9 +308,10 @@ ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.removePages = function ( pages
|
|||
isCurrentPageRemoved = true;
|
||||
}
|
||||
} else {
|
||||
if ( !isCurrentPageRemoved ) {
|
||||
// avoid choosing a parameter as previous selection
|
||||
if ( !isCurrentPageRemoved && pageName.indexOf( '/' ) === -1 ) {
|
||||
prevSelectionCandidate = pageName;
|
||||
} else if ( !nextSelectionCandidate ) {
|
||||
} else if ( isCurrentPageRemoved && !nextSelectionCandidate ) {
|
||||
nextSelectionCandidate = pageName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue