User: Markhurd/common.js

(Now actually RTFM...)
(It's there in the debugger...)
Line 2: Line 2:


addOnloadHook(function () {
addOnloadHook(function () {
  alert('Got here 4.');
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   {
   {
     alert('and here 4.');
     alert('Still here 1.');
     var ss = $('#submitSpam');
     var ss = $('#submitSpam');
     ss.click(function() {
     ss.click(function() {
             alert('here too.');
             alert('here too 1.');
             document.getElementById('wpComment').style.display='none';
             document.getElementById('wpComment').style.display='none';
             form.elements[11].focus();
             this.form.elements[11].focus();
         });
         });
   };
   };
  });
  });

Revision as of 07:31, 20 April 2013

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

addOnloadHook(function () {
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   {
     alert('Still here 1.');
     var ss = $('#submitSpam');
     ss.click(function() {
            alert('here too 1.');
            document.getElementById('wpComment').style.display='none';
            this.form.elements[11].focus();
        });
   };
 });
Discuss this page