MediaWiki:Gadget-twinkleblock.js: Difference between revisions
Content deleted Content added
Repo at 04d11bb: add regression test (#2110); fix no-useless-concat (#2100); fix prefer-const (#2099) |
Repo at ac3c1e3: replace es-x/no-array-prototype-includes with unicorn/prefer-includes (#2125) |
||
Line 171:
Twinkle.block.isRegistered = !!userinfo.userid;
if (Twinkle.block.isRegistered) {
Twinkle.block.userIsBot = !!userinfo.groupmemberships && userinfo.groupmemberships.map((e) => e.group).
} else {
Twinkle.block.userIsBot = false;
Line 1,549:
if (!Twinkle.block.seeAlsos.length) {
this.form.reason.value = reason;
} else if (reason.
this.form.reason.value = reason + ' <!-- see also ' + seeAlsoMessage + ' -->';
} else {
Line 1,761:
if (toBlock) {
if (blockoptions.partial) {
if (blockoptions.disabletalk && !blockoptions.namespacerestrictions.
return alert('Partial blocks cannot prevent talk page access unless also restricting them from editing User talk space!');
}
|