Ticket #21685: 21685.2.diff
| File 21685.2.diff, 696 bytes (added by , 14 years ago) |
|---|
-
wp-content/themes/twentytwelve/js/theme-customizer.js
21 21 // Hook into background color change and adjust body class value as needed. 22 22 wp.customize( 'background_color', function( value ) { 23 23 value.bind( function( to ) { 24 if ( '#ffffff' == to || '#fff' == to || '' == to)24 if ( '#ffffff' == to || '#fff' == to ) 25 25 $( 'body' ).addClass( 'custom-background-white' ); 26 26 else if ( '' == to ) 27 27 $( 'body' ).addClass( 'custom-background-empty' );