User:DreamRimmer/MergeHelper.js: Difference between revisions

Content deleted Content added
create
 
fix
Line 8:
page2Input = new OO.ui.TextInputWidget({ placeholder: 'Destination page' }),
loadBtn = new OO.ui.ButtonWidget({ label: 'Load wikitext', flags: ['primary'] }),
page1Text = new OO.ui.MultilineTextInputWidget({ placeholder: 'Wikitext:Source +page page1Namewikitext', autosize: true, rows: 20, disabled: true }),
page2Text = new OO.ui.MultilineTextInputWidget({ placeholder: 'Wikitext:Destination +page page2Namewikitext', autosize: true, rows: 20, disabled: true }),
summary1Input = new OO.ui.TextInputWidget({ placeholder: 'Summary:Edit + page1Namesummary' }),
summary2Input = new OO.ui.TextInputWidget({ placeholder: 'Summary:Edit + page2Namesummary' }),
redirectCheck = new OO.ui.CheckboxInputWidget({ selected: false }).on('change', updateRedirect),
previewBtn = new OO.ui.ButtonWidget({ label: 'Preview Changes', flags: ['primary'], disabled: true }),
Line 17:
cancelBtn = new OO.ui.ButtonWidget({ label: 'Cancel', flags: ['primary', 'destructive'], href: 'https:' + mw.config.get('wgServer') }),
logDiv = $("<div>").hide(),
redirectDiv = $('<div>').css({ 'display': 'flex', 'align-items': 'center', 'gap': '10px' }).append(redirectCheck.$element, $('<p>').text('Redirect the firstsource page to the seconddestination page')).hide();
 
$('#mw-content-text').append(
Line 33:
$('<div>').css({ 'display': 'flex', 'gap': '10px' }).append(
$('<div>').css({ 'flex': '1', 'border': '1px solid #ccc', 'padding': '10px', 'box-sizing': 'border-box', 'min-width': '45%', 'max-width': '45%', 'overflow': 'auto' }).append(
$('<p>').text('Summary for First Page:').css('font-weight', 'bold'), summary1Input.$element
),
$('<div>').css({ 'flex': '1', 'border': '1px solid #ccc', 'padding': '10px', 'box-sizing': 'border-box', 'min-width': '45%', 'max-width': '45%', 'overflow': 'auto' }).append(
$('<p>').text('Summary for Second Page:').css('font-weight', 'bold'), summary2Input.$element
)
),