Browse Source

Fix target of child animate

pull/1574/head
jlukic 10 years ago
parent
commit
fbce1f1c7c
1 changed files with 15 additions and 12 deletions
  1. 27
      src/definitions/modules/accordion.js

27
src/definitions/modules/accordion.js

@ -157,10 +157,11 @@ $.fn.accordion = function(parameters) {
;
if(settings.animateChildren) {
$activeContent
.stop()
.animate({
opacity: 1
}, settings.duration, module.resetOpacity)
.children()
.stop()
.animate({
opacity: 1
}, settings.duration, module.resetOpacity)
;
}
$activeContent
@ -198,10 +199,11 @@ $.fn.accordion = function(parameters) {
;
if(settings.animateChildren) {
$activeContent
.stop()
.animate({
opacity: 0
}, settings.duration, module.resetOpacity)
.children()
.stop()
.animate({
opacity: 0
}, settings.duration, module.resetOpacity)
;
}
$activeContent
@ -245,10 +247,11 @@ $.fn.accordion = function(parameters) {
;
if(settings.animateChildren) {
$openContents
.stop()
.animate({
opacity: 0
}, settings.duration, module.resetOpacity)
.children()
.stop()
.animate({
opacity: 0
}, settings.duration, module.resetOpacity)
;
}
$openContents

Loading…
Cancel
Save