Skip to content
Permalink
Browse files

Themes: Fix javascript regression that linter found.

Tests were failing from line length optimizations and double quotes. 

Fixes #37536


git-svn-id: https://develop.svn.wordpress.org/trunk@46310 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
whyisjake committed Sep 25, 2019
1 parent 8f43c53 commit fd0b230dcd7adff34b0e88b31f8e2be5e70eacd5
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/wp-content/themes/twentyfifteen/js/functions.js
@@ -100,16 +100,13 @@
sidebarHeight = $sidebar.height(),
bodyHeight = $body.height();

if( 955 < $window.width()
&& bodyHeight > sidebarHeight
&& ( windowPos + windowHeight ) >= sidebarHeight ) {

if( 955 < $window.width() && bodyHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) {
$sidebar.css({
position: "fixed",
position: 'fixed',
bottom: sidebarHeight > windowHeight ? 0 : 'auto'
});
} else {
$sidebar.css('position', 'relative')
$sidebar.css('position', 'relative');
}
}

0 comments on commit fd0b230

Please sign in to comment.
You can’t perform that action at this time.