User:Euphoria/massBlock.js: Difference between revisions

From Test Wiki
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
         contentText.empty(); // Clear the current content
         contentText.empty(); // Clear the current content


         // Change the document title
         // 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');


         // Update the header of the content area
         // The HTML for the blocking interface
         contentText.append('<h1>Mass Block Tool</h1>');
         var formHtml = '<h1>Mass Block Tool</h1>' +
 
            '<div id="massBlockTool" style="margin: 20px;">' +
        var formHtml = '<div id="massBlockTool">' +
             '<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.append(formHtml);
         contentText.html(formHtml);


         $('#blockReasonSelect').change(function() {
         $('#blockReasonSelect').change(function() {
152

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.