Accordion for the customizer. Props markjaquith. fixes #20700
git-svn-id: https://develop.svn.wordpress.org/trunk@20837 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c392250983
commit
fd6d65117c
|
@ -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