From db0e04adcf56c63b96e27d747aac43ba4dadaabf Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 May 2012 19:53:22 +0000 Subject: [PATCH] Accordion for the customizer. Props markjaquith. fixes #20700 git-svn-id: http://core.svn.wordpress.org/trunk@20837 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/customize-controls.dev.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/customize-controls.dev.js b/wp-includes/js/customize-controls.dev.js index 2bd9b9c9d8..f1f29f3fc8 100644 --- a/wp-includes/js/customize-controls.dev.js +++ b/wp-includes/js/customize-controls.dev.js @@ -460,7 +460,9 @@ // Temporary accordion code. $('.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; });