From fd0b230dcd7adff34b0e88b31f8e2be5e70eacd5 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Wed, 25 Sep 2019 22:11:11 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentyfifteen/js/functions.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/js/functions.js b/src/wp-content/themes/twentyfifteen/js/functions.js index f26293edab..f968885829 100644 --- a/src/wp-content/themes/twentyfifteen/js/functions.js +++ b/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'); } }