Make WordPress Core

Ticket #37536: 37536.3.diff

File 37536.3.diff, 837 bytes (added by whyisjake, 6 years ago)
  • src/wp-content/themes/twentyfifteen/js/functions.js

     
    100100                        sidebarHeight = $sidebar.height(),
    101101                        bodyHeight = $body.height();
    102102
    103                 if( 955 < $window.width()
    104                         && bodyHeight > sidebarHeight
    105                         && ( windowPos + windowHeight ) >= sidebarHeight ) {
    106 
     103                if( 955 < $window.width() && bodyHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) {
    107104                        $sidebar.css({
    108                                 position: "fixed",
     105                                position: 'fixed',
    109106                                bottom: sidebarHeight > windowHeight ? 0 : 'auto'
    110107                        });
    111108                } else {
    112                         $sidebar.css('position', 'relative')
     109                        $sidebar.css('position', 'relative');
    113110                }
    114111        }
    115112