]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add jank js back to docs application.js for responsive dropdown in topbar
authorMark Otto <markdotto@gmail.com>
Fri, 6 Jan 2012 00:03:05 +0000 (16:03 -0800)
committerMark Otto <markdotto@gmail.com>
Fri, 6 Jan 2012 00:03:05 +0000 (16:03 -0800)
docs/assets/js/application.js

index eae84b138fe1ba889146997712e9991bfa941ed5..63791bd37d5288334acbbebb2213ec788d476fe9 100644 (file)
@@ -4,6 +4,7 @@ $(function(){
   // IT'S ALL JUST JUNK FOR OUR DOCS!
   // ++++++++++++++++++++++++++++++++++++++++++
 
+
   // Hide the Mobile Safari address bar once loaded
   // ==============================================
 
@@ -13,6 +14,16 @@ $(function(){
     window.scrollTo(0, 1);
   }, 0);
 
+
+  // Docs topbar nav
+  // ===============
+
+  $('.nav .active').on('click', function (e) {
+    e.preventDefault()
+    $(this).siblings().toggle()
+  });
+
+
   // table sort example
   // ==================