MediaWiki:Gadget-twinkleblock.js: Difference between revisions
Content deleted Content added
Amorymeltzer (talk | contribs) Undid revision 937393019 by Amorymeltzer (talk) Nope |
Amorymeltzer (talk | contribs) Better fix |
||
Line 1,265:
blockoptions = Twinkle.block.field_block_options;
if (!$form.find('[name=actiontype][value=partial]').is(':checked')) {
delete blockoptions.partial;
}
templateoptions = Twinkle.block.field_template_options;
Line 1,279 ⟶ 1,282:
blockoptions.pagerestrictions = templateoptions.pagerestrictions.join('|');
blockoptions.namespacerestrictions = templateoptions.namespacerestrictions.join('|');
console.log(blockoptions);
console.log(templateoptions);
// use block settings as warn options where not supplied
templateoptions.summary = templateoptions.summary || blockoptions.reason;
|