Accordion for the customizer. Props markjaquith. fixes #20700
git-svn-id: http://core.svn.wordpress.org/trunk@20837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2fa8066123
commit
db0e04adcf
|
@ -460,7 +460,9 @@
|
||||||
|
|
||||||
// Temporary accordion code.
|
// Temporary accordion code.
|
||||||
$('.customize-section-title').click( function() {
|
$('.customize-section-title').click( function() {
|
||||||
$( this ).parents('.customize-section').toggleClass( 'open' );
|
var clicked = $( this ).parents( '.customize-section' );
|
||||||
|
$( '.customize-section' ).not( clicked ).removeClass( 'open' );
|
||||||
|
clicked.toggleClass( 'open' );
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue