Make WordPress Core

Ticket #37980: cannot-expand-no-events.37980.diff

File cannot-expand-no-events.37980.diff, 592 bytes (added by kkoppenhaver, 8 years ago)
  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index 7078cfd..e426166 100644
     
    614614                attachEvents: function () {
    615615                        var section = this;
    616616
     617                        if( section.container.hasClass( 'cannot-expand' ) ) {
     618                                return;
     619                        }
     620
    617621                        // Expand/Collapse accordion sections on click.
    618622                        section.container.find( '.accordion-section-title, .customize-section-back' ).on( 'click keydown', function( event ) {
    619623                                if ( api.utils.isKeydownButNotEnterEvent( event ) ) {