From: Jacob Thornton Date: Tue, 20 Mar 2012 03:29:22 +0000 (-0700) Subject: add activate to scrollspy docs X-Git-Tag: v2.0.3~5^2~108^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07d23b927ee4eefdee51d4fcbffb3dece33be698;p=thirdparty%2Fbootstrap.git add activate to scrollspy docs --- diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 1a07056b6c..92ba97c6d7 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/js/bootstrap-scrollspy.js b/docs/assets/js/bootstrap-scrollspy.js index b7ff907f71..e0c74539e1 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') } } diff --git a/docs/javascript.html b/docs/javascript.html index 54177b5664..3ee6f795c8 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -589,6 +589,21 @@ $('#myModal').on('hidden', function () { +

Events

+ + + + + + + + + + + + + +
EventDescription
activateThis event fires whenever a new item becomes activated by the scrollspy.
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 0079741831..2de6962108 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -513,6 +513,21 @@ $('#myModal').on('hidden', function () { +

{{_i}}Events{{/i}}

+ + + + + + + + + + + + + +
{{_i}}Event{{/i}}{{_i}}Description{{/i}}
{{_i}}activate{{/i}}{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}