aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-03-29 23:32:47 -0700
committerMark Otto <[email protected]>2013-03-29 23:32:47 -0700
commit23d7215dbe6f075436fd13ef5376419143a079f5 (patch)
tree9aa44e28e49c5f176d0cdb7a1e0d84e1ab18fdda /docs/assets/js/bootstrap.js
parent4dfc4e102262f79a7048b2713ff5adea85ffec8b (diff)
downloadbootstrap-23d7215dbe6f075436fd13ef5376419143a079f5.tar.xz
bootstrap-23d7215dbe6f075436fd13ef5376419143a079f5.zip
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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index 57ec04196..95469f900 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) {