aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap-scrollspy.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-03-19 20:29:22 -0700
committerJacob Thornton <[email protected]>2012-03-19 20:29:22 -0700
commit07d23b927ee4eefdee51d4fcbffb3dece33be698 (patch)
tree814640856025b0b1452eefb243b8c13d6ca42db2 /docs/assets/js/bootstrap-scrollspy.js
parent384a082e8d220115d0eb94b0c57d837b625ad2ab (diff)
downloadbootstrap-07d23b927ee4eefdee51d4fcbffb3dece33be698.tar.xz
bootstrap-07d23b927ee4eefdee51d4fcbffb3dece33be698.zip
add activate to scrollspy docs
Diffstat (limited to 'docs/assets/js/bootstrap-scrollspy.js')
-rw-r--r--docs/assets/js/bootstrap-scrollspy.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap-scrollspy.js b/docs/assets/js/bootstrap-scrollspy.js
index b7ff907f7..e0c74539e 100644
--- a/docs/assets/js/bootstrap-scrollspy.js
+++ b/docs/assets/js/bootstrap-scrollspy.js
@@ -92,8 +92,10 @@
.addClass('active')
if ( active.parent('.dropdown-menu') ) {
- active.closest('li.dropdown').addClass('active')
+ active = active.closest('li.dropdown').addClass('active')
}
+
+ active.trigger('activate')
}
}