Difference between revisions of "User:Markhurd/common.js"

From Wikimedia Australia
Jump to navigation Jump to search
(Try copying some working code...)
(Canonical name is ConfirmAccounts)
Line 2: Line 2:
  
 
addOnloadHook(function () {
 
addOnloadHook(function () {
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts/authors')
+
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
 
     $('.submitSpam').click(function() {
 
     $('.submitSpam').click(function() {
 
             document.getElementById('wpComment').style.display='none';
 
             document.getElementById('wpComment').style.display='none';

Revision as of 17:32, 20 April 2013

// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"

addOnloadHook(function () {
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
     $('.submitSpam').click(function() {
            document.getElementById('wpComment').style.display='none';
            form.elements[11].focus();
        });
 });