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

Modify scrollspy to add .active to all parent li items /cc @fat

This commit is contained in:
Mark Otto
2013-03-29 23:32:47 -07:00
parent 4dfc4e1022
commit 23d7215dbe
4 changed files with 7 additions and 7 deletions

View File

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