]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
listen to window for dropdown clear
authorJacob Thornton <jacobthornton@gmail.com>
Fri, 6 Jan 2012 02:32:08 +0000 (18:32 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Fri, 6 Jan 2012 02:32:08 +0000 (18:32 -0800)
docs/assets/js/application.js
js/bootstrap-dropdown.js

index 63791bd37d5288334acbbebb2213ec788d476fe9..6194b88db543921dbb3ed6974256338c1168e6d2 100644 (file)
@@ -15,15 +15,6 @@ $(function(){
   }, 0);
 
 
-  // Docs topbar nav
-  // ===============
-
-  $('.nav .active').on('click', function (e) {
-    e.preventDefault()
-    $(this).siblings().toggle()
-  });
-
-
   // table sort example
   // ==================
 
index 15f4677b9d40bf300d78b2053d12c85f30767d77..d846f1af1b5879b6639eee7204a454f266bac4f1 100644 (file)
@@ -74,7 +74,7 @@
    * =================================== */
 
   $(function () {
-    $('html').on('click.dropdown.data-api', clearMenus)
+    $(window).on('click.dropdown.data-api', clearMenus)
     $('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
   })