Make WordPress Core

Changeset 20837


Ignore:
Timestamp:
05/21/2012 07:53:22 PM (13 years ago)
Author:
ryan
Message:

Accordion for the customizer. Props markjaquith. fixes #20700

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/customize-controls.dev.js

    r20816 r20837  
    461461        // Temporary accordion code.
    462462        $('.customize-section-title').click( function() {
    463             $( this ).parents('.customize-section').toggleClass( 'open' );
     463            var clicked = $( this ).parents( '.customize-section' );
     464            $( '.customize-section' ).not( clicked ).removeClass( 'open' );
     465            clicked.toggleClass( 'open' );
    464466            return false;
    465467        });
Note: See TracChangeset for help on using the changeset viewer.