Skip to content

Commit

Permalink
Merge pull request twbs#5323 from artiz/master
Browse files Browse the repository at this point in the history
Please check my fix for twbs#4550
  • Loading branch information
fat committed Oct 18, 2012
2 parents c52368d + 0944e03 commit 7426ced
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions js/bootstrap-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@
}

function clearMenus() {
getParent($(toggle))
.removeClass('open')
$(toggle).each(function () {
getParent($(this)).removeClass('open')
})
}

function getParent($this) {
Expand Down
6 changes: 5 additions & 1 deletion less/responsive-navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
top: auto;
left: auto;
float: none;
display: block;
display: none;
max-width: none;
margin: 0 15px;
padding: 0;
Expand All @@ -108,6 +108,10 @@
.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;
Expand Down

0 comments on commit 7426ced

Please sign in to comment.