diff options
| author | Erlend Halvorsen <[email protected]> | 2012-09-27 10:31:40 +0200 |
|---|---|---|
| committer | Erlend Halvorsen <[email protected]> | 2012-09-27 10:31:40 +0200 |
| commit | e9a648cd39dc6b5e0f126b7272adeac816ece758 (patch) | |
| tree | dd1ef7ebb5cfc60619e30641d49c8f649827beff /docs | |
| parent | 0540b63ab0a2f9359fbd34967fbb74402534573f (diff) | |
| download | bootstrap-e9a648cd39dc6b5e0f126b7272adeac816ece758.tar.xz bootstrap-e9a648cd39dc6b5e0f126b7272adeac816ece758.zip | |
Fixed bug in dropdown toggle where menu would only clear on the first drop down
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/js/bootstrap-dropdown.js | 7 | ||||
| -rw-r--r-- | docs/assets/js/bootstrap.js | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/docs/assets/js/bootstrap-dropdown.js b/docs/assets/js/bootstrap-dropdown.js index 0ef9b0f9d..503fb7b3a 100644 --- a/docs/assets/js/bootstrap-dropdown.js +++ b/docs/assets/js/bootstrap-dropdown.js @@ -99,9 +99,10 @@ } - function clearMenus() { - getParent($(toggle)) - .removeClass('open') + function clearMenus() { + $(toggle).each(function () { + getParent($(this)).removeClass("open") + }) } function getParent($this) { diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index d1672330c..b539cd499 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -674,9 +674,10 @@ } - function clearMenus() { - getParent($(toggle)) - .removeClass('open') + function clearMenus() { + $(toggle).each(function () { + getParent($(this)).removeClass("open") + }) } function getParent($this) { |
