]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix for #4550 5323/head
authorArtem Kustikov <artem.kustikov@gmail.com>
Thu, 27 Sep 2012 18:45:37 +0000 (21:45 +0300)
committerArtem Kustikov <artem.kustikov@gmail.com>
Thu, 27 Sep 2012 18:45:37 +0000 (21:45 +0300)
Also fixes dropdowns hiding behavior for case when two or more dropdowns
with [data-toggle=dropdown] exist on the page

js/bootstrap-dropdown.js
less/responsive-navbar.less

index 42370dfbef26cc66502b5b70664d30a807daa3ef..ca90bd014cd6ae76a1d87ce4c3b5ce28e77512f2 100644 (file)
   }
 
   function clearMenus() {
-    getParent($(toggle))
-      .removeClass('open')
+    $(toggle).each(function () {
+      getParent($(this)).removeClass('open')
+    })
   }
 
   function getParent($this) {
index c454dd5e398c6fa3f7ac3731b4c293eaa4a37c95..073eafb113b3fd402358d3651e89f193e5fce4e0 100644 (file)
@@ -99,7 +99,7 @@
     top: auto;
     left: auto;
     float: none;
-    display: block;
+    display: none;
     max-width: none;
     margin: 0 15px;
     padding: 0;
     .border-radius(0);
     .box-shadow(none);
   }
+  .nav-collapse .open > .dropdown-menu { 
+    display: block; 
+  }
+
   .nav-collapse .dropdown-menu:before,
   .nav-collapse .dropdown-menu:after {
     display: none;