User:Euphoria/massBlock.js: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
contentText.empty(); // Clear the current content |
contentText.empty(); // Clear the current content |
||
// |
// Set the page title in the browser tab |
||
document.title = 'Mass Block Tool - ' + mw.config.get('wgSiteName'); |
document.title = 'Mass Block Tool - ' + mw.config.get('wgSiteName'); |
||
// |
// The HTML for the blocking interface |
||
var formHtml = '<h1>Mass Block Tool</h1>' + |
|||
| ⚫ | |||
| ⚫ | |||
'<p>If you abuse this tool, it\'s your fault, not mine.</p>' + |
'<p>If you abuse this tool, it\'s your fault, not mine.</p>' + |
||
'<textarea id="usernamesToBlock" placeholder="Usernames to block (one on each line, please):" rows="10" cols="50"></textarea>' + |
'<textarea id="usernamesToBlock" placeholder="Usernames to block (one on each line, please):" rows="10" cols="50"></textarea>' + |
||
| Line 44: | Line 43: | ||
'</div>'; |
'</div>'; |
||
contentText. |
contentText.html(formHtml); |
||
$('#blockReasonSelect').change(function() { |
$('#blockReasonSelect').change(function() { |
||