Make WordPress Core

Ticket #32492: customize.32492.diff

File customize.32492.diff, 450 bytes (added by dovyp, 9 years ago)

Diff file to get JS to properly collapse sections when panel is collapsed.

  • wp-admin/js/customize-controls.js

    diff --git wp-admin/js/customize-controls.js wp-admin/js/customize-controls.js
    index e211a41..2508ae3 100644
     
    29202920                        }
    29212921
    29222922                        event.preventDefault(); // Keep this AFTER the key filter above
     2923                        api.section.each( function ( section ) {
     2924                                section.collapse( { duration: 0 } );
     2925                        });
    29232926                        api.panel.each( function ( panel ) {
    29242927                                panel.collapse();
    29252928                        });