Simplify the accordion sibling-section-closing JS.

see #23890

git-svn-id: https://develop.svn.wordpress.org/trunk@23858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2013-03-29 09:30:48 +00:00
parent 38e8fd6923
commit 31858e2511
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' );
});
});