Welcome to Warhammer 40k - Lexicanum! Log in and join the community.
Difference between revisions of "MediaWiki:Common.js"
From Warhammer 40k - Lexicanum
m (trial) |
|||
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. */ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
function makeSubTableHigh(){ | function makeSubTableHigh(){ | ||
if (document.getElementsByTagName){ | if (document.getElementsByTagName){ |
Revision as of 23:08, 24 June 2009
/* Any JavaScript here will be loaded for all users on every page load. */ function makeSubTableHigh(){ if (document.getElementsByTagName){ var tables = document.getElementsByTagName('table'); var tablecount = tables.length; for (i=0;i<tablecount;i++){ if(/innersummarytable/.test(tables[i].className)){ tables[i].style.height = tables[i].parentNode.clientHeight; } } } } function turnoffajax(){ var oldsearch=document.getElementById('searchInput'); var newsearch=oldsearch.cloneNode(true); document.body.appendChild(newsearch); oldsearch.id='searchInputNoAjax'; newsearch.disabled=true; newsearch.style.display='none'; } hookEvent("load", turnoffajax); hookEvent("load", makeSubTableHigh); if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://wh40k.lexicanum.com/mediawiki/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#redirect [[ ", "tagClose": "]]", "sampleText": "Insert Text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://wh40k.lexicanum.com/mediawiki/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "<!-- ", "tagClose": " -->", "sampleText": "Insert comment here"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://wh40k.lexicanum.com/mediawiki/images/c/c4/Button_ref.png", "speedTip": "Sourcing 1", "tagOpen": "*<sup>1</sup>", "tagClose": "", "sampleText": ""} }