Difference between revisions of "MediaWiki:Common.js"
From Geohashing
imported>Joannac |
imported>Joannac |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | if(!(wgAction == 'edit' || wgAction == 'submit' || | + | if(!(wgAction == 'edit' || wgAction == 'submit' || wgAction == 'create')) { |
document.write("Scrolling time!"); | document.write("Scrolling time!"); | ||
window.scrollTo(0,document.body.scrollHeight); | window.scrollTo(0,document.body.scrollHeight); | ||
} | } |
Revision as of 21:37, 31 March 2012
/* Any JavaScript here will be loaded for all users on every page load. */ if(!(wgAction == 'edit' || wgAction == 'submit' || wgAction == 'create')) { document.write("Scrolling time!"); window.scrollTo(0,document.body.scrollHeight); }