Skip to content

Commit

Permalink
always default to the non talk page
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Nov 19, 2024
1 parent efca3a1 commit 07d6216
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/twinklexfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ Twinkle.xfd.callback.change_category = function twinklexfdCallbackChangeCategory
old_area.parentNode.replaceChild(work_area, old_area);
break;

case 'rm':
case 'rm': {
work_area = new Morebits.quickForm.element({
type: 'field',
label: 'Requested moves',
Expand Down Expand Up @@ -724,8 +724,12 @@ Twinkle.xfd.callback.change_category = function twinklexfdCallbackChangeCategory
work_area = work_area.render();
old_area.parentNode.replaceChild(work_area, old_area);

form.currentname.value = Morebits.pageNameNorm;
const currentNonTalkPage = Morebits.pageNameNorm
.replace(/^Talk:/, '')
.replace(/^([A-Za-z]*) talk:/, '$1:');
form.currentname.value = currentNonTalkPage;
break;
}

default:
work_area = new Morebits.quickForm.element({
Expand Down

0 comments on commit 07d6216

Please sign in to comment.