MediaWiki:Gadget-twinkleblock.js: Difference between revisions
Content deleted Content added
Amorymeltzer (talk | contribs) Repo at 90379aab: Match uhblock-double language to ipbreason; Reword uw-efblock reason to say 'Repeatedly triggering' rather than 'Deliberately triggering' |
MusikAnimal (talk | contribs) Repo at 66e1c54: Add option to default to blocking the /64, off by default (#1352); remove trailing space in input field labels |
||
Line 111:
event: Twinkle.block.callback.change_block64,
list: [{
checked: Twinkle.getPref('defaultToBlock64'),
label: 'Block the /64 instead',
value: 'block64',
Line 143:
var evt = document.createEvent('Event');
evt.initEvent('change', true, true);
result.actiontype[0].dispatchEvent(evt);▼
if (result.block64 && result.block64.checked) {
// Calls the same change_action event once finished
result.block64.dispatchEvent(evt);
} else {
▲ result.actiontype[0].dispatchEvent(evt);
}
});
};
Line 559 ⟶ 565:
type: 'input',
name: 'template_expiry',
label: 'Period of blocking:
value: '',
tooltip: 'The period the blocking is due for, for example 24 hours, 2 weeks, indefinite etc...'
Line 567 ⟶ 573:
type: 'input',
name: 'block_reason',
label: '"You have been blocked for ..."
tooltip: 'An optional reason, to replace the default generic reason. Only available for the generic block templates.',
value: Twinkle.block.field_template_options.block_reason
|