mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
if parent in collapse, only grab children
This commit is contained in:
Binary file not shown.
Vendored
+1
-2
@@ -44,7 +44,7 @@
|
||||
, show: function () {
|
||||
var dimension = this.dimension()
|
||||
, scroll = $.camelCase(['scroll', dimension].join('-'))
|
||||
, actives = this.$parent && this.$parent.find('.in')
|
||||
, actives = this.$parent && this.$parent.find('> .accordion-group > .in')
|
||||
, hasData
|
||||
|
||||
if (actives && actives.length) {
|
||||
@@ -56,7 +56,6 @@
|
||||
this.$element[dimension](0)
|
||||
this.transition('addClass', 'show', 'shown')
|
||||
this.$element[dimension](this.$element[0][scroll])
|
||||
|
||||
}
|
||||
|
||||
, hide: function () {
|
||||
|
||||
Vendored
+1
-2
@@ -44,7 +44,7 @@
|
||||
, show: function () {
|
||||
var dimension = this.dimension()
|
||||
, scroll = $.camelCase(['scroll', dimension].join('-'))
|
||||
, actives = this.$parent && this.$parent.find('.in')
|
||||
, actives = this.$parent && this.$parent.find('> .accordion-group > .in')
|
||||
, hasData
|
||||
|
||||
if (actives && actives.length) {
|
||||
@@ -56,7 +56,6 @@
|
||||
this.$element[dimension](0)
|
||||
this.transition('addClass', 'show', 'shown')
|
||||
this.$element[dimension](this.$element[0][scroll])
|
||||
|
||||
}
|
||||
|
||||
, hide: function () {
|
||||
|
||||
Reference in New Issue
Block a user