Skip to content
Permalink
Browse files

accordion: fixed calling activate with -1 and alwaysOpen: false not p…

…roperly removing classes (fixes #3785)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jan 19, 2009
1 parent e67bf62 commit 14e32a2b9fcb8aa6940264912373f7569766b915
Showing with 2 additions and 0 deletions.
  1. +2 −0 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,

0 comments on commit 14e32a2

Please sign in to comment.
You can’t perform that action at this time.