User:BZPN/RfD.js: Difference between revisions

From Test Wiki
Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
No edit summary
Tags: Manual revert Reverted Mobile edit Mobile web edit
Line 32: Line 32:
// Tworzenie okna popup
// Tworzenie okna popup
const popup = $('<div>').attr('id', 'deletion-popup').css({
const popup = $('<div>').attr('id', 'deletion-popup').css({
'width': '90%',
'width': '400px',
'max-width': '400px',
'margin': '10% auto',
'margin': '10% auto',
'padding': '20px',
'padding': '20px',
Line 54: Line 53:


// Tytuł okna
// Tytuł okna
$('<h3>').text('Nominate for deletion').css({
$('<h3>').text('Nominate for deletion').appendTo(popup);
'font-size': '16px',
'margin-bottom': '10px'
}).appendTo(popup);


// Informacja o zasadach RfD i link do Wikipedia:Requests for deletion
// Informacja o zasadach RfD i link do Wikipedia:Requests for deletion
$('<p>').text('Before nominating, please read the deletion policy on the Wikipedia:Requests for deletion page.').css({
$('<p>').text('Before nominating, please read the deletion policy and guidelines on the Wikipedia:Requests for deletion page.').css({
'font-size': '14px',
'font-size': '14px',
'margin-bottom': '10px'
'margin-bottom': '10px'
Line 79: Line 75:
'margin-right': '5px'
'margin-right': '5px'
});
});
$('<label>').attr('for', 'policy-confirmation').text('I have read and agree with the deletion policy').prepend(policyCheckbox).css({
$('<label>').attr('for', 'policy-confirmation').text('I have read and agree with the deletion policy').prepend(policyCheckbox).appendTo(popup);
'display': 'block',
'font-size': '14px',
'margin-bottom': '10px'
}).appendTo(popup);


// Pole na krótki powód
// Pole na krótki powód
$('<label>').attr('for', 'deletion-short-reason').text('Short reason:').css({
$('<label>').attr('for', 'deletion-short-reason').text('Short reason:').css({
'display': 'block',
'display': 'block',
'margin-top': '10px',
'margin-top': '15px'
'font-size': '14px'
}).appendTo(popup);
}).appendTo(popup);
const shortReasonInput = $('<input>').attr({
const shortReasonInput = $('<input>').attr({
Line 98: Line 89:
'width': '100%',
'width': '100%',
'padding': '6px',
'padding': '6px',
'margin': '5px 0',
'margin': '5px 0'
'font-size': '14px',
'box-sizing': 'border-box'
}).appendTo(popup);
}).appendTo(popup);


Line 106: Line 95:
$('<label>').attr('for', 'deletion-detailed-reason').text('Detailed reason for discussion:').css({
$('<label>').attr('for', 'deletion-detailed-reason').text('Detailed reason for discussion:').css({
'display': 'block',
'display': 'block',
'margin-top': '10px',
'margin-top': '10px'
'font-size': '14px'
}).appendTo(popup);
}).appendTo(popup);
const detailedReasonInput = $('<textarea>').attr({
const detailedReasonInput = $('<textarea>').attr({
Line 116: Line 104:
'padding': '6px',
'padding': '6px',
'height': '80px',
'height': '80px',
'margin': '5px 0',
'margin': '5px 0'
'font-size': '14px',
'box-sizing': 'border-box'
}).appendTo(popup);
}).appendTo(popup);


Line 130: Line 116:
'border-radius': '5px',
'border-radius': '5px',
'cursor': 'pointer',
'cursor': 'pointer',
'margin-top': '10px',
'margin-top': '10px'
'font-size': '14px'
}).on('click', function() {
}).on('click', function() {
if (!policyCheckbox.is(':checked')) {
if (!policyCheckbox.is(':checked')) {