]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
hack for subnav
authorJacob Thornton <jacobthornton@gmail.com>
Sun, 15 Apr 2012 00:15:03 +0000 (17:15 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Sun, 15 Apr 2012 00:15:03 +0000 (17:15 -0700)
docs/assets/js/application.js

index 732bed45866cefc70966a06acf2eee76c383d372..f1b7c090accde8e24188abd94fba1cff620415ed 100644 (file)
 
     processScroll()
 
+    // hack sad times - holdover until rewrite for 2.1
+    $nav.on('click', function () {
+      if (!isFixed) setTimeout(function () {  $win.scrollTop($win.scrollTop() - 47) }, 10)
+    })
+
     $win.on('scroll', processScroll)
 
     function processScroll() {