Make WordPress Core

Ticket #39335: 39335.0.diff

File 39335.0.diff, 1.1 KB (added by westonruter, 8 years ago)
  • src/wp-content/themes/twentyseventeen/assets/js/customize-controls.js

    diff --git src/wp-content/themes/twentyseventeen/assets/js/customize-controls.js src/wp-content/themes/twentyseventeen/assets/js/customize-controls.js
    index b8e7e8160c..e6f6037a4d 100644
     
    2525                });
    2626
    2727                // Detect when the front page sections section is expanded (or closed) so we can adjust the preview accordingly.
    28                 wp.customize.section( 'theme_options' ).expanded.bind( function( isExpanding ) {
     28                wp.customize.section( 'theme_options', function( section ) {
     29                        section.expanded.bind( function( isExpanding ) {
    2930
    30                         // Value of isExpanding will = true if you're entering the section, false if you're leaving it.
    31                         wp.customize.previewer.send( 'section-highlight', { expanded: isExpanding });
    32                 });
     31                                // Value of isExpanding will = true if you're entering the section, false if you're leaving it.
     32                                wp.customize.previewer.send( 'section-highlight', { expanded: isExpanding });
     33                        } );
     34                } );
    3335        });
    3436})( jQuery );