Simplify the accordion sibling-section-closing JS.

see #23890

git-svn-id: http://core.svn.wordpress.org/trunk@23858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2013-03-29 09:30:48 +00:00
parent fc3522a1b7
commit 4dd2707c60
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ jQuery(document).ready( function($) {
if ( section.hasClass('cannot-expand') )
return;
section.closest( '.accordion-container' ).find( '.accordion-section' ).not( section ).removeClass( 'open' );
section.siblings( '.open' ).removeClass( 'open' );
section.toggleClass( 'open' );
});
});