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:
ryan 2012-05-21 19:53:22 +00:00
parent 2fa8066123
commit db0e04adcf
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}); });