mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 05:41:42 +01:00
Switch all the Sass/SCSS tabs together
This commit is contained in:
parent
99baca03d3
commit
2afc346f0f
@ -15,4 +15,24 @@ $(function() {
|
||||
$( this ).removeClass( "ui-state-hover" );
|
||||
}
|
||||
);
|
||||
|
||||
// Switch ALL the tabs (Sass/SCSS) together
|
||||
var
|
||||
noRecursion = false,
|
||||
jqA = $( "a.ui-tabs-anchor" ),
|
||||
jqASass = jqA.filter( ":contains('Sass')" ).click(function() {
|
||||
if ( !noRecursion ) {
|
||||
noRecursion = true;
|
||||
jqASass.not( this ).click();
|
||||
noRecursion = false;
|
||||
}
|
||||
}),
|
||||
jqASCSS = jqA.filter( ":contains('SCSS')" ).click(function() {
|
||||
if ( !noRecursion ) {
|
||||
noRecursion = true;
|
||||
jqASCSS.not( this ).click();
|
||||
noRecursion = false;
|
||||
}
|
||||
})
|
||||
;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user