Permalink
Browse files

remove js errors i was seeing in console

  • Loading branch information...
1 parent 11c0c48 commit 322669b86fa8b9c024234771a94f3b7924b84062 @rmarianski rmarianski committed Nov 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 templates/base.html
View
4 templates/base.html
@@ -276,7 +276,9 @@
if ($('.subnav').hasClass('subnav-fixed')) return;
// Remember top position
var offset = $('.subnav').offset()
- $('.subnav').attr('data-top', offset.top);
+ if (offset) {
+ $('.subnav').attr('data-top', offset.top);
+ }
}
if ($('.subnav').attr('data-top') - $('.subnav').outerHeight() <= $(this).scrollTop())

0 comments on commit 322669b

Please sign in to comment.