MediaWiki:Gadget-twinkleblock.js: Difference between revisions
Content deleted Content added
Amorymeltzer (talk | contribs) Repo at 2b6f9a7: use test, not search, when we're not using the output; Fix for usergroup checking of IPs; better detect bots and turn off autoblock; Don't follow cross-namespace redirect when issuing block template; Remove 10k z-index on select2 dropdowns |
Amorymeltzer (talk | contribs) Repo at 3c65fa5b: Add isInfinity for whether MW will parse string as infinite, use in block |
||
Line 1,084:
settings.summary = settings.summary || settings.reason;
settings.sig = settings.sig !== undefined ? settings.sig : 'yes';
settings.indefinite = settings.indefinite || Morebits.string.isInfinity(settings.expiry);
if (!Twinkle.block.isRegistered && settings.indefinite) {
Line 1,331 ⟶ 1,330:
}
form.template_expiry.parentNode.style.display = 'none';
form.template_expiry.value = '
} else if (form.template_expiry.parentNode.style.display === 'none') {
if (Twinkle.block.prev_template_expiry !== null) {
Line 1,368 ⟶ 1,367:
expiry: form.template_expiry ? form.template_expiry.value : form.expiry.value,
hardblock: Twinkle.block.isRegistered ? form.autoblock.checked : form.hardblock.checked,
indefinite:
reason: form.block_reason.value,
template: form.template.value,
Line 1,645 ⟶ 1,644:
}
params.indefinite =
if (Twinkle.getPref('blankTalkpageOnIndefBlock') && params.template !== 'uw-lblock' && params.indefinite) {
|