From: Jacob Thornton Date: Mon, 19 Mar 2012 23:09:08 +0000 (-0700) Subject: fire active event on active X-Git-Tag: v2.0.3~5^2~108^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05e0d5f3d931e84f3bc86a5c1153e710237cb53a;p=thirdparty%2Fbootstrap.git fire active event on active --- diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index b7ff907f71..dea6e95f03 100644 --- a/js/bootstrap-scrollspy.js +++ b/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('active') } }