17,233
edits
(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(); | ||