~canonical-sysadmins/wordpress/4.7.2

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyseventeen/assets/js/customize-controls.js

  • Committer: Jamon Camisso
  • Date: 2017-01-12 15:31:31 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: jamon.camisso@canonical.com-20170112153131-yfjnoh8x21u7flat
Merge WP4.7.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                });
26
26
 
27
27
                // 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 ) {
29
30
 
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
                } );
33
35
        });
34
36
})( jQuery );