User: Markhurd/common.js

< User:Markhurd
m (Not quite so bad an error...)
m (Debugging...)
Line 2: Line 2:


addOnloadHook(function () {
addOnloadHook(function () {
   alert('Got here 3.');
   alert('Got here 4.');
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   {
   {
     alert('and here 3.');
     alert('and here 4.');
     debug.breaker();
     var si = $('.submitSpam');
     var ss = $('submitSpam');
     var ss = $('submitSpam');
     alert(ss);
     alert(ss);
     alert(ss.id);
     alert(ss.id);
     alert(ss());
     alert(ss());
    alert(si());
     addClickHandler(ss, function() {
     addClickHandler(ss, function() {
             alert('here too.');
             alert('here too.');

Revision as of 07:06, 20 April 2013

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

addOnloadHook(function () {
   alert('Got here 4.');
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   {
     alert('and here 4.');
     var si = $('.submitSpam');
     var ss = $('submitSpam');
     alert(ss);
     alert(ss.id);
     alert(ss());
     alert(si());
     addClickHandler(ss, function() {
            alert('here too.');
            document.getElementById('wpComment').style.display='none';
            form.elements[11].focus();
        });
   };
 });
Discuss this page