Accordion: Use .addClass() instead of .toggleClass() during init so the classes can be added by the user.

This commit is contained in:
Scott González 2010-07-16 13:40:11 -04:00
parent fde8c64fd3
commit f448c79c01

View File

@ -79,7 +79,9 @@ $.widget("ui.accordion", {
}
}
this.active = this._findActive(this.active || o.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
this.active = this._findActive(this.active || o.active)
.addClass("ui-state-default ui-state-active")
.toggleClass("ui-corner-all ui-corner-top");
this.active.next().addClass('ui-accordion-content-active');
//Append icon elements