Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErlend Halvorsen <erlendfh@gmail.com>2012-09-27 12:31:40 +0400
committerErlend Halvorsen <erlendfh@gmail.com>2012-09-27 12:31:40 +0400
commite9a648cd39dc6b5e0f126b7272adeac816ece758 (patch)
treedd1ef7ebb5cfc60619e30641d49c8f649827beff /js/bootstrap-dropdown.js
parent0540b63ab0a2f9359fbd34967fbb74402534573f (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.js7
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) {