aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-07-15 08:32:22 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-07-15 08:32:22 +0000
commitdcdccf0789e80142198d5fb493c320300880bd26 (patch)
tree4c05b07d5d317d5a131d65105771143ed7bf2b63
parent226ff67a002cacb89ffc1bf9c3760eec17b558a9 (diff)
downloadjquery-ui-dcdccf0789e80142198d5fb493c320300880bd26.tar.gz
jquery-ui-dcdccf0789e80142198d5fb493c320300880bd26.zip
Fixed the regression introduced in r2861
-rw-r--r--ui/ui.accordion.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js
index de1a29f1e..f40fe6c9f 100644
--- a/ui/ui.accordion.js
+++ b/ui/ui.accordion.js
@@ -278,7 +278,6 @@ $.widget("ui.accordion", {
// switch classes
this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all")
.find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);
- this.active.next().removeClass('ui-accordion-content-active');
if (!clickedIsActive) {
clicked.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top")
.find(".ui-icon").removeClass(o.icons.header).addClass(o.icons.headerSelected);
@@ -405,6 +404,9 @@ $.widget("ui.accordion", {
overflow: ""
});
}
+
+ // other classes are removed before the animation; this one needs to stay until completed
+ this.toHide.removeClass("ui-accordion-content-active");
this._trigger('change', null, this.data);
}