diff options
author | Erlend Halvorsen <erlendfh@gmail.com> | 2012-09-27 12:31:40 +0400 |
---|---|---|
committer | Erlend Halvorsen <erlendfh@gmail.com> | 2012-09-27 12:31:40 +0400 |
commit | e9a648cd39dc6b5e0f126b7272adeac816ece758 (patch) | |
tree | dd1ef7ebb5cfc60619e30641d49c8f649827beff /js/bootstrap-dropdown.js | |
parent | 0540b63ab0a2f9359fbd34967fbb74402534573f (diff) |
Fixed bug in dropdown toggle where menu would only clear on the first drop down
Diffstat (limited to 'js/bootstrap-dropdown.js')
-rw-r--r-- | js/bootstrap-dropdown.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/bootstrap-dropdown.js b/js/bootstrap-dropdown.js index 0ef9b0f9d2..503fb7b3ac 100644 --- a/js/bootstrap-dropdown.js +++ b/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) { |