Skip to content

Commit

Permalink
Updated check for button vizability instead of window width.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenHarbinger authored and sobkowiak committed Jul 18, 2016
1 parent 3eee383 commit 7492250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ $(document).ready(function(){
$(".sticky").Stickyfill();

var stickySideBar = function(){
var windowWidth = $(window).width();
if (windowWidth > 1024) {
if (!$(".author__urls-wrapper button").is(":visible")) {
// fix
Stickyfill.rebuild();
Stickyfill.init();
$(".author__urls").show()
$(".author__urls").show();
} else {
// unfix
Stickyfill.stop();
$(".author__urls").hide()
$(".author__urls").hide();
}
};

Expand Down
Loading

0 comments on commit 7492250

Please sign in to comment.