Ticket #21685: 21685-customizer.diff

File 21685-customizer.diff, 1009 bytes (added by obenland, 9 months ago)
  • wp-content/themes/twentytwelve/js/theme-customizer.js

     
    3333 
    3434        // Hook into background color change and adjust body class value as needed. 
    3535        wp.customize( 'background_color', function( value ) { 
    36                 var body = $( 'body' ); 
    3736                value.bind( function( to ) { 
    3837                        if ( '#ffffff' == to || '#fff' == to || '' == to ) 
    39                                 body.addClass( 'custom-background-white' ); 
     38                                $( 'body' ).addClass( 'custom-background-white' ); 
    4039                        else if ( '' == to ) 
    41                                 body.addClass( 'custom-background-empty' ); 
     40                                $( 'body' ).addClass( 'custom-background-empty' ); 
    4241                        else 
    43                                 body.removeClass( 'custom-background-empty custom-background-white' ); 
     42                                $( 'body' ).removeClass( 'custom-background-empty custom-background-white' ); 
    4443                } ); 
    4544        } ); 
    4645} )( jQuery ); 
     46 No newline at end of file