1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-28 15:50:01 +02:00

Merge pull request #5309 from erlendfh/dropdown-bugfix

Fixed bug in dropdown toggle where menu would only clear on the first dropdown
This commit is contained in:
billy gates
2012-10-17 23:00:41 -07:00
4 changed files with 53 additions and 10 deletions

View File

@@ -99,9 +99,10 @@
}
function clearMenus() {
getParent($(toggle))
.removeClass('open')
function clearMenus() {
$(toggle).each(function () {
getParent($(this)).removeClass("open")
})
}
function getParent($this) {

View File

@@ -676,9 +676,10 @@
}
function clearMenus() {
getParent($(toggle))
.removeClass('open')
function clearMenus() {
$(toggle).each(function () {
getParent($(this)).removeClass("open")
})
}
function getParent($this) {