aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbilly gates <[email protected]>2012-10-17 23:00:41 -0700
committerbilly gates <[email protected]>2012-10-17 23:00:41 -0700
commitd6ac499ca85606d8ce0294d2be3526700605c368 (patch)
treede1dcfda9d743b7b8340ac25cd5ae6804befa734 /docs
parent280d4aeb30aa6b29ec74bd801ad1be3fc05e01f4 (diff)
parente9a648cd39dc6b5e0f126b7272adeac816ece758 (diff)
downloadbootstrap-d6ac499ca85606d8ce0294d2be3526700605c368.tar.xz
bootstrap-d6ac499ca85606d8ce0294d2be3526700605c368.zip
Merge pull request #5309 from erlendfh/dropdown-bugfix
Fixed bug in dropdown toggle where menu would only clear on the first dropdown
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/js/bootstrap-dropdown.js7
-rw-r--r--docs/assets/js/bootstrap.js7
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 3aaaa6877..ef5def94d 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -676,9 +676,10 @@
}
- function clearMenus() {
- getParent($(toggle))
- .removeClass('open')
+ function clearMenus() {
+ $(toggle).each(function () {
+ getParent($(this)).removeClass("open")
+ })
}
function getParent($this) {