2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

add length to parent dropdown check #3316

This commit is contained in:
Jacob Thornton
2012-06-02 19:02:30 -07:00
parent b8a8927b0c
commit 354f99f0bd
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -108,7 +108,7 @@
.parent('li')
.addClass('active')
if (active.parent('.dropdown-menu')) {
if (active.parent('.dropdown-menu').length) {
active = active.closest('li.dropdown').addClass('active')
}
+1 -1
View File
@@ -1418,7 +1418,7 @@
.parent('li')
.addClass('active')
if (active.parent('.dropdown-menu')) {
if (active.parent('.dropdown-menu').length) {
active = active.closest('li.dropdown').addClass('active')
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -108,7 +108,7 @@
.parent('li')
.addClass('active')
if (active.parent('.dropdown-menu')) {
if (active.parent('.dropdown-menu').length) {
active = active.closest('li.dropdown').addClass('active')
}