Skip to content
This repository has been archived by the owner on Jul 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #174 from alicoding/bug884098
Browse files Browse the repository at this point in the history
bug884098 - no back to top on some page
  • Loading branch information
Dale Karp committed Jun 18, 2013
2 parents 03c0569 + 8cda5a4 commit 20105d7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,17 @@ require(['jquery','base/carousel', 'base/webmaker', 'base/mediaGallery', 'base/p
return false;
});

$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('.backToTop').addClass("addMore");
} else {
$('.backToTop').removeClass("addMore");
}
});
var noTop = ["tools", "guides"];

if ( noTop.indexOf( $body[0].id ) === -1 ) {
$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('.backToTop').addClass("addMore");
} else {
$('.backToTop').removeClass("addMore");
}
});
}

carousel.attachToCTA();
carousel.attachToPartners();
Expand Down

0 comments on commit 20105d7

Please sign in to comment.