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 /docs/assets/js/bootstrap.js | |
parent | 4dfc4e102262f79a7048b2713ff5adea85ffec8b (diff) |
Modify scrollspy to add .active to all parent li items /cc @fat
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r-- | docs/assets/js/bootstrap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index 57ec041962..95469f900c 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -1621,7 +1621,7 @@ this.activeTarget = target $(this.selector) - .parent('.active') + .parents('.active') .removeClass('active') selector = this.selector @@ -1629,7 +1629,7 @@ + this.selector + '[href="' + target + '"]' active = $(selector) - .parent('li') + .parents('li') .addClass('active') if (active.parent('.dropdown-menu').length) { |