MediaWiki:Common.js

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

/** * Show/hide for rows -- Made by Grunny for Wookieepedia **/ $( function {	if( !$( '.row-toggles' ).length ) {		return;	}	$( '.row-toggles' ).find( 'td > a' ).click( function  { var	hideBtnClass = $( this ).parent.attr( 'class' ), $hideContent = $( 'tr.' + hideBtnClass ); if( !$hideContent.length ) { return; }		$hideContent.toggle; if ( $( this ).text.indexOf( 'hide' ) >= 1 ) { $( this ).text( $( this ).text.replace( 'hide', 'show' ) ); } else { $( this ).text( $( this ).text.replace( 'show', 'hide' ) ); }	} ); } );