Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2013-03-30 10:32:47 +0400
committerMark Otto <otto@github.com>2013-03-30 10:32:47 +0400
commit23d7215dbe6f075436fd13ef5376419143a079f5 (patch)
tree9aa44e28e49c5f176d0cdb7a1e0d84e1ab18fdda /docs/assets/js/bootstrap.js
parent4dfc4e102262f79a7048b2713ff5adea85ffec8b (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.js4
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) {