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
path: root/js
diff options
context:
space:
mode:
authorArtem Kustikov <artem.kustikov@gmail.com>2012-09-27 22:45:37 +0400
committerArtem Kustikov <artem.kustikov@gmail.com>2012-09-27 22:45:37 +0400
commit0944e036ae778f7efc9eeafcc33e58600e110fb0 (patch)
tree9d7ef8d987edebc4a8ad30a12326fb311d51bb2a /js
parentc52368d3c5984b28e6a71e5e1240afdd788fc2e6 (diff)
Fix for #4550
Also fixes dropdowns hiding behavior for case when two or more dropdowns with [data-toggle=dropdown] exist on the page
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-dropdown.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/bootstrap-dropdown.js b/js/bootstrap-dropdown.js
index 42370dfbef..ca90bd014c 100644
--- a/js/bootstrap-dropdown.js
+++ b/js/bootstrap-dropdown.js
@@ -100,8 +100,9 @@
}
function clearMenus() {
- getParent($(toggle))
- .removeClass('open')
+ $(toggle).each(function () {
+ getParent($(this)).removeClass('open')
+ })
}
function getParent($this) {