- // Temporary accordion code.
- $('.customize-section-title').bind('click keydown', function( event ) {
-
- if ( event.type === 'keydown' && 13 !== event.which ) // enter
- return;
-
- var clicked = $( this ).parents( '.customize-section' );
-
- if ( clicked.hasClass('cannot-expand') )
- return;
-
- // Scroll up if on #customize-section-title_tagline
- if ('customize-section-title_tagline' === clicked.attr('id'))
- $('.wp-full-overlay-sidebar-content').scrollTop(0);
-
- $( '.customize-section' ).not( clicked ).removeClass( 'open' );
- clicked.toggleClass( 'open' );
- event.preventDefault();
- });
-