mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Use .addClass() instead of .toggleClass() during init so the classes can be added by the user.
This commit is contained in:
parent
fde8c64fd3
commit
f448c79c01
4
ui/jquery.ui.accordion.js
vendored
4
ui/jquery.ui.accordion.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user