]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
only prevent default of links in sections
authorJacob Thornton <jacobthornton@gmail.com>
Sat, 21 Jan 2012 04:05:16 +0000 (20:05 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Sat, 21 Jan 2012 04:05:16 +0000 (20:05 -0800)
docs/assets/js/application.js

index 0e14a53508177f9ad62466888e31b26feff18ee1..ba5a2694759a67f4297c39fecbe38ae0146e0050 100644 (file)
@@ -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()
   })