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:
parent
fc3522a1b7
commit
4dd2707c60
|
@ -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' );
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue