diff options
| author | Mark Otto <[email protected]> | 2013-03-29 23:32:47 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-03-29 23:32:47 -0700 |
| commit | 23d7215dbe6f075436fd13ef5376419143a079f5 (patch) | |
| tree | 9aa44e28e49c5f176d0cdb7a1e0d84e1ab18fdda /js | |
| parent | 4dfc4e102262f79a7048b2713ff5adea85ffec8b (diff) | |
| download | bootstrap-23d7215dbe6f075436fd13ef5376419143a079f5.tar.xz bootstrap-23d7215dbe6f075436fd13ef5376419143a079f5.zip | |
Modify scrollspy to add .active to all parent li items /cc @fat
Diffstat (limited to 'js')
| -rw-r--r-- | js/bootstrap-scrollspy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index 7e845a513..8ccd43fa1 100644 --- a/js/bootstrap-scrollspy.js +++ b/js/bootstrap-scrollspy.js @@ -97,7 +97,7 @@ this.activeTarget = target $(this.selector) - .parent('.active') + .parents('.active') .removeClass('active') selector = this.selector @@ -105,7 +105,7 @@ + this.selector + '[href="' + target + '"]' active = $(selector) - .parent('li') + .parents('li') .addClass('active') if (active.parent('.dropdown-menu').length) { |
