diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-19 15:08:52 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-19 15:08:52 +0000 |
commit | 14e32a2b9fcb8aa6940264912373f7569766b915 (patch) | |
tree | 6e446865d3f0880be63a33c86063fa598fa3d533 | |
parent | e67bf62eeade075ed775ee8eddba0d4e90fc12d3 (diff) | |
download | jquery-ui-14e32a2b9fcb8aa6940264912373f7569766b915.tar.gz jquery-ui-14e32a2b9fcb8aa6940264912373f7569766b915.zip |
accordion: fixed calling activate with -1 and alwaysOpen: false not properly removing classes (fixes #3785)
-rw-r--r-- | ui/ui.accordion.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index a47a0a3c5..89d042c51 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -202,6 +202,8 @@ $.widget("ui.accordion", { // called only when using activate(false) to close all parts programmatically if (!event.target && !o.alwaysOpen) { this.active.parent().toggleClass(o.selectedClass); + 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); var toHide = this.active.next(), data = { options: o, |