diff options
author | Mark Otto <otto@github.com> | 2013-03-30 10:32:47 +0400 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2013-03-30 10:32:47 +0400 |
commit | 23d7215dbe6f075436fd13ef5376419143a079f5 (patch) | |
tree | 9aa44e28e49c5f176d0cdb7a1e0d84e1ab18fdda /js | |
parent | 4dfc4e102262f79a7048b2713ff5adea85ffec8b (diff) |
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 7e845a513f..8ccd43fa10 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) { |