aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-03-14 11:08:19 -0400
committerScott González <scott.gonzalez@gmail.com>2012-03-14 11:08:19 -0400
commitec062c1156d58726dc212e6e2191ee7196302c44 (patch)
tree17460503d7e1f8d7d633274d3aab0167907cea57 /ui/jquery.ui.accordion.js
parent575baa0e2c0584ab6ed297b2a566313ef50bf215 (diff)
downloadjquery-ui-ec062c1156d58726dc212e6e2191ee7196302c44.tar.gz
jquery-ui-ec062c1156d58726dc212e6e2191ee7196302c44.zip
Accordion: Removed ui-accordion-disabled class. Fixes #8193 - Accordion: Remove ui-accordion-disabled class.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 7f167d6b1..169a07409 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -134,7 +134,7 @@ $.widget( "ui.accordion", {
// clean up headers
this.headers
.unbind( ".accordion" )
- .removeClass( "ui-accordion-header ui-accordion-header-active ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
+ .removeClass( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
.removeAttr( "role" )
.removeAttr( "aria-expanded" )
.removeAttr( "aria-selected" )
@@ -145,7 +145,7 @@ $.widget( "ui.accordion", {
var contents = this.headers.next()
.css( "display", "" )
.removeAttr( "role" )
- .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled" );
+ .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled" );
if ( this.options.heightStyle !== "content" ) {
this.element.css( "height", this.originalHeight );
contents.css( "height", "" );
@@ -185,9 +185,7 @@ $.widget( "ui.accordion", {
// so we need to add the disabled class to the headers and panels
if ( key === "disabled" ) {
this.headers.add( this.headers.next() )
- // TODO: why do we have an accordion-specific disabled class?
- // widget-specific classes seem to exist in a lot of plugins
- .toggleClass( "ui-accordion-disabled ui-state-disabled", !!value );
+ .toggleClass( "ui-state-disabled", !!value );
}
},