Changes

Jump to navigation Jump to search

MediaWiki:Common.js

20 bytes removed, 08:19, 22 October 2015
Debugging attempt - not all elements appear to have a .hasClass() method.
} else if ( navToggle.firstChild.data == navigationBarShow ) {
for ( navChild = navFrame.firstChild; navChild != null; navChild = navChild.nextSibling ) {
if ( $hasClass( navChild ).hasClass( , 'NavPic' ) || $hasClass( navChild ).hasClass( , 'NavContent' ) ) {
navChild.style.display = 'block';
}
navToggleText = document.createTextNode( navigationBarHide );
for ( navChild = navFrame.firstChild; navChild != null; navChild = navChild.nextSibling ) {
if ( $hasClass( navChild ).hasClass( , 'NavPic' ) || $hasClass( navChild ).hasClass( , '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