1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

if parent in collapse, only grab children

This commit is contained in:
Jacob Thornton 2012-03-19 21:10:55 -07:00
parent 630ff4ff7d
commit bce33bbb09
3 changed files with 2 additions and 4 deletions

Binary file not shown.

View file

@ -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 () {

View file

@ -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 () {