From: Jacob Thornton Date: Sat, 21 Jan 2012 04:05:16 +0000 (-0800) Subject: only prevent default of links in sections X-Git-Tag: v2.0.0~6^2~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7444310c4d0a2f34c7cec66216fdf95d67a0e74d;p=thirdparty%2Fbootstrap.git only prevent default of links in sections --- diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 0e14a53508..ba5a269475 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -38,7 +38,7 @@ $(function(){ // it's merely here to prevent button clicks form taking you // away from your spot on page!! - $('[href^=#]').click(function (e) { + $('section [href^=#]').click(function (e) { e.preventDefault() })