17,230
edits
mNo edit summary |
(prevent multiple defaults for a single selector) |
||
Line 37: | Line 37: | ||
// check default | // check default | ||
if( $(this).data( 'tabDefault' ) ) { | if( $(this).data( 'tabDefault' ) && !tabstate[target][selector] ) { | ||
$(this).addClass( 'active' ); | $(this).addClass( 'active' ); | ||
tabselect( target, selector, selection ); | tabselect( target, selector, selection ); |