Content deleted Content added
DreamRimmer (talk | contribs) create |
DreamRimmer (talk | contribs) tweak |
||
(8 intermediate revisions by the same user not shown) | |||
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: '
page2Text = new OO.ui.MultilineTextInputWidget({ placeholder: '
summary1Input = new OO.ui.TextInputWidget({ placeholder: '
summary2Input = new OO.ui.TextInputWidget({ placeholder: '
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
$('#mw-content-text').append(
$('<p>').text('
$('<p>').text('
loadBtn.$element,
$('<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('
),
$('<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('
)
),
$('<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
),
$('<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
)
),
Line 135:
content2 = page2Text.getValue();
var preview1 = $('<div>').css({ border: '1px solid #ccc', padding: '10px', margin: '10px', flex: '1', overflow: 'auto', height: '1000px', width: '412px' });
var preview2 = $('<div>').css({ border: '1px solid #ccc', padding: '10px', margin: '10px', flex: '1', overflow: 'auto', height: '1000px', width: '412px' });
logDiv.empty().append(
Line 152:
var page1Name = page1Input.getValue().trim(),
page2Name = page2Input.getValue().trim(),
summary1 = summary1Input.getValue().trim() + " (using [[User:DreamRimmer/MergeHelper|MergeHelper.js]])",
summary2 = summary2Input.getValue().trim() + " (using [[User:DreamRimmer/MergeHelper|MergeHelper.js]])",
content1 = page1Text.getValue(),
content2 = page2Text.getValue();
|