diff options
author | Felix Nagel <info@felixnagel.com> | 2013-01-30 18:10:39 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-01-30 18:10:39 +0100 |
commit | 91dde04dadcd9b314e099ced040a763aa35b7b5c (patch) | |
tree | 3572e1b71f5c8998c46e411b9d992795a1105530 /ui/jquery.ui.accordion.js | |
parent | de149c47d79bf5822baad786591eb837fe2af769 (diff) | |
parent | ceebe07e2c99190030c16b031813ae660d9283d1 (diff) | |
download | jquery-ui-91dde04dadcd9b314e099ced040a763aa35b7b5c.tar.gz jquery-ui-91dde04dadcd9b314e099ced040a763aa35b7b5c.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r-- | ui/jquery.ui.accordion.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 8050e55ab..1afa95cb4 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -65,6 +65,7 @@ $.widget( "ui.accordion", { _getCreateEventData: function() { return { header: this.active, + panel: !this.active.length ? $() : this.active.next(), content: !this.active.length ? $() : this.active.next() }; }, @@ -262,8 +263,8 @@ $.widget( "ui.accordion", { (this.element.attr( "id" ) || ++uid); this.active = this._findActive( options.active ) - .addClass( "ui-accordion-header-active ui-state-active" ) - .toggleClass( "ui-corner-all ui-corner-top" ); + .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" ) + .removeClass( "ui-corner-all" ); this.active.next() .addClass( "ui-accordion-content-active" ) .show(); |