scrollspy working for sub navs
This commit is contained in:
parent
f2fe2b1798
commit
5e5e87fbd0
3 changed files with 23 additions and 20 deletions
|
|
@ -119,7 +119,7 @@ $(function(){
|
|||
// fix sub nav playa
|
||||
var $win = $(window)
|
||||
, $nav = $('.subnav')
|
||||
, navTop = $('.subnav').offset().top - 40
|
||||
, navTop = $('.subnav').length && $('.subnav').offset().top - 40
|
||||
, isFixed = 0
|
||||
|
||||
processScroll()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue