1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

scrollspy working for sub navs

This commit is contained in:
Jacob Thornton
2012-01-24 22:33:33 -08:00
parent f2fe2b1798
commit 5e5e87fbd0
3 changed files with 23 additions and 20 deletions

View File

@@ -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()