17,230
edits
m (didn't fix it. adding logging) |
(fix deactivating tabs for undefined selectors) |
||
Line 48: | Line 48: | ||
} ); | } ); | ||
// activate | // deactivate other tabs sharing the same selector and activate this one | ||
tabsets.filter( ' | tabsets.filter( function() { return $( this ).data( 'tabSelector' ) == selector; } ).find( '.zdw-tab' ).removeClass( 'active' ); | ||
tab.addClass( 'active' ); | tab.addClass( 'active' ); | ||