diff options
author | Richard D. Worth <rdworth@gmail.com> | 2010-03-29 10:00:26 -0400 |
---|---|---|
committer | Richard D. Worth <rdworth@gmail.com> | 2010-03-29 10:00:26 -0400 |
commit | 4657bd85bc04e01d9f9b9637fe6aaf1bc66113fb (patch) | |
tree | dab35fd5ef353434765d569687a36f3173f3a2ca /ui/jquery.ui.widget.js | |
parent | c49be0be1a57cac325f021ffddc2f0fbccde1553 (diff) | |
download | jquery-ui-4657bd85bc04e01d9f9b9637fe6aaf1bc66113fb.tar.gz jquery-ui-4657bd85bc04e01d9f9b9637fe6aaf1bc66113fb.zip |
Changed widget factory to keep generic css framework class -state-disabled in ui namespace instead of custom widget namespace. Fixes #5443 - $.Widget uses [namespace]-state-disabled, must be ui-state-disabled to be useful
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 49067449d..a9829d2e5 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -155,7 +155,7 @@ $.Widget.prototype = { .removeAttr( "aria-disabled" ) .removeClass( this.widgetBaseClass + "-disabled " + - this.namespace + "-state-disabled" ); + "ui-state-disabled" ); }, widget: function() { @@ -192,7 +192,7 @@ $.Widget.prototype = { this.widget() [ value ? "addClass" : "removeClass"]( this.widgetBaseClass + "-disabled" + " " + - this.namespace + "-state-disabled" ) + "ui-state-disabled" ) .attr( "aria-disabled", value ); } |