Make WordPress Core

Changeset 38900


Ignore:
Timestamp:
10/25/2016 04:36:00 AM (7 years ago)
Author:
westonruter
Message:

Customize: Skip attaching expansion event handlers to section containers with the cannot-expand class.

Props kkoppenhaver, celloexpressions.
Fixes #37980.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r38881 r38900  
    464464}
    465465
    466 .panel-meta.customize-info .accordion-section-title {
     466#customize-controls .panel-meta.customize-info .accordion-section-title {
    467467    margin-left: 48px;
    468 }
    469 
    470 #customize-controls .panel-meta.customize-info .accordion-section-title:hover {
     468    border-left: none;
     469}
     470
     471#customize-controls .panel-meta.customize-info .accordion-section-title:hover,
     472#customize-controls .cannot-expand:hover .accordion-section-title {
    471473    background: #fff;
    472474    color: #555;
    473     border-left: none;
     475    border-left-color: #fff;
    474476}
    475477
  • trunk/src/wp-admin/js/customize-controls.js

    r38890 r38900  
    907907            var meta, content, section = this;
    908908
     909            if ( section.container.hasClass( 'cannot-expand' ) ) {
     910                return;
     911            }
     912
    909913            // Expand/Collapse accordion sections on click.
    910914            section.container.find( '.accordion-section-title, .customize-section-back' ).on( 'click keydown', function( event ) {
Note: See TracChangeset for help on using the changeset viewer.