Changes

Jump to navigation Jump to search

MediaWiki:Common.js

20 bytes added, 08:22, 22 October 2015
No good, the debugging attempt failed - Undo revision 5455 by Bugman admin (talk)
} else if ( navToggle.firstChild.data == navigationBarShow ) {
for ( navChild = navFrame.firstChild; navChild != null; navChild = navChild.nextSibling ) {
if ( $( navChild ).hasClass( navChild, 'NavPic' ) || $( navChild ).hasClass( navChild, 'NavContent' ) ) {
navChild.style.display = 'block';
}
navToggleText = document.createTextNode( navigationBarHide );
for ( navChild = navFrame.firstChild; navChild != null; navChild = navChild.nextSibling ) {
if ( $( navChild ).hasClass( navChild, 'NavPic' ) || $( navChild ).hasClass( navChild, 'NavContent' ) ) {
if ( navChild.style.display == 'none' ) {
navToggleText = document.createTextNode( navigationBarShow );
// Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked)
for ( j = 0; j < navFrame.childNodes.length; j++ ) {
if ( hasClass$( navFrame.childNodes[j], ).hasClass( 'NavHead' ) ) {
navFrame.childNodes[j].appendChild( navToggle );
}

Navigation menu