Ticket #30160: 30160.2.diff
| File 30160.2.diff, 3.2 KB (added by , 12 years ago) |
|---|
-
src/wp-content/themes/twentyfifteen/inc/customizer.php
654 654 * @since Twenty Fifteen 1.0 655 655 */ 656 656 function twentyfifteen_customize_preview_js() { 657 wp_enqueue_script( 'twentyfifteen-customize r', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141005', true );657 wp_enqueue_script( 'twentyfifteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20141029', true ); 658 658 } 659 659 add_action( 'customize_preview_init', 'twentyfifteen_customize_preview_js' ); 660 No newline at end of file -
src/wp-content/themes/twentyfifteen/js/color-scheme-control.js
1 1 /* global colorScheme */ 2 2 /** 3 * Customizer enhancements for a better user experience. 4 * 5 * Adds listener to Color Scheme control to update other color controls with new values/defaults 3 * Add a listener to the Color Scheme control to update other color controls to new values/defaults. 6 4 */ 7 5 8 6 ( function( wp ) { -
src/wp-content/themes/twentyfifteen/js/customize-preview.js
1 /** 2 * Live-update changed settings in real time in the Customizer preview. 3 */ 4 5 ( function( $ ) { 6 // Site title and description. 7 wp.customize( 'blogname', function( value ) { 8 value.bind( function( to ) { 9 $( '.site-title a' ).text( to ); 10 } ); 11 } ); 12 wp.customize( 'blogdescription', function( value ) { 13 value.bind( function( to ) { 14 $( '.site-description' ).text( to ); 15 } ); 16 } ); 17 } )( jQuery ); 18 No newline at end of file -
src/wp-content/themes/twentyfifteen/js/customizer.js
Property changes on: src/wp-content/themes/twentyfifteen/js/customize-preview.js ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property
1 /**2 * Customizer enhancements for a better user experience.3 *4 * Contains handlers to make Customizer preview reload changes asynchronously.5 */6 7 ( function( $ ) {8 // Site title and description.9 wp.customize( 'blogname', function( value ) {10 value.bind( function( to ) {11 $( '.site-title a' ).text( to );12 } );13 } );14 wp.customize( 'blogdescription', function( value ) {15 value.bind( function( to ) {16 $( '.site-description' ).text( to );17 } );18 } );19 } )( jQuery );20 No newline at end of file
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)