MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /* */ function toggleInfoDisplay(what) { var id = "c-" + what.id; if(document.getElementById(id).style.display=="none") { document.getElementById(id).style.display = "block"; what.innerHTML = "Hide reason"; } else { document.getElementById(id).style.display = "none"; what.innerHTML = "Show reason"; } } /* */