MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* Section Hide folder functionality */ function toggleSectionVisibility(fieldObj, id, txt1, txt2) { var e = document.getElementById('sectionblock'+id); if(fieldObj.innerHTML == txt1) {   fieldObj.innerHTML = txt2; e.style.display = 'block'; } else {   fieldObj.innerHTML = txt1; e.style.display = 'none'; } }