MediaWiki:Tabs.js: Difference between revisions

Want an adless experience? Log in or Create an account.
fix hiding deselected content when it's not in a container
(remove legacy tabs)
(fix hiding deselected content when it's not in a container)
 
Line 65: Line 65:
   // hide contents (except nested contents)
   // hide contents (except nested contents)
   container.find( '.zdw-tabcontent' ).filter( function() {
   container.find( '.zdw-tabcontent' ).filter( function() {
     return $( this ).closest( '.zdw-tabcontainer' ).is( container );
     return target || $( this ).closest( '.zdw-tabcontainer' ).is( container );
   } ).hide();
   } ).hide();