User:Locke/common.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
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 ); |