Board Thread:Support Requests - Getting Technical/@comment-31876814-20180518173915/@comment-31876814-20180519065718

Fandyllic wrote: Oh, I see. What you want is far more complicated and requires custom JS. Set up your tables with similar CSS classes (most importantly put  on your button table) and copy the following to your MediaWiki:Common.js: /** * Show/hide for media timeline -- Grunny **/ $( function {	if( !$( '.timeline-toggles' ).length ) {		return;	}	$( '.timeline-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' ) ); }	} ); } );

CSS classes on the button cells need to match the corresponding cells  in the data table. Huh, I can't find any MediaWiki:Comon.js file. Where can I find it?