Merge "Don't set a ParameterPage as next selection after delete"

This commit is contained in:
jenkins-bot 2022-07-12 13:04:01 +00:00 committed by Gerrit Code Review
commit 98ec1db594

View file

@ -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;
}
}