From cd79ac9a640da28a5c56ebaa87d51e147535e500 Mon Sep 17 00:00:00 2001 From: Matthew Aguirre Date: Thu, 14 Jul 2016 10:24:10 -0400 Subject: [PATCH] Fixed condition that should be notted. --- assets/js/_main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/_main.js b/assets/js/_main.js index a34b9ed7..e67a317e 100644 --- a/assets/js/_main.js +++ b/assets/js/_main.js @@ -11,7 +11,7 @@ $(document).ready(function(){ $(".sticky").Stickyfill(); var stickySideBar = function(){ - var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : $(".author__urls-wrapper button").is(":visible"); + var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : !$(".author__urls-wrapper button").is(":visible"); // console.log("has button: " + $(".author__urls-wrapper button").length === 0); // console.log("Window Width: " + windowWidth); // console.log("show: " + show);