Make WordPress Core

Changeset 46310


Ignore:
Timestamp:
09/25/2019 10:11:11 PM (5 years ago)
Author:
whyisjake
Message:

Themes: Fix javascript regression that linter found.

Tests were failing from line length optimizations and double quotes.

Fixes #37536

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/js/functions.js

    r46308 r46310  
    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    }
Note: See TracChangeset for help on using the changeset viewer.