User: Markhurd/common.js

(try not specifying a type)
(Try copying some working code...)
Line 1: Line 1:
// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"
// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"
$(document).ready(function() {
 
        $('.submitSpam').click(function() {
addOnloadHook(function () {
  if(wgCanonicalSpecialPageName == 'ConfirmAccounts/authors')
    $('.submitSpam').click(function() {
             document.getElementById('wpComment').style.display='none';
             document.getElementById('wpComment').style.display='none';
             form.elements[11].focus();
             form.elements[11].focus();
         });
         });
    });
});

Revision as of 06:29, 20 April 2013

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

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