Skip to content
Permalink
Browse files

Changed widget factory to keep generic css framework class -state-dis…

…abled in ui namespace instead of custom widget namespace. Fixes #5443 - $.Widget uses [namespace]-state-disabled, must be ui-state-disabled to be useful
  • Loading branch information
rdworth committed Mar 29, 2010
1 parent c49be0b commit 4657bd85bc04e01d9f9b9637fe6aaf1bc66113fb
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 );
}

1 comment on commit 4657bd8

@jzaefferer

This comment has been minimized.

Copy link
Member

@jzaefferer jzaefferer commented on 4657bd8 Mar 29, 2010

Cool, thanks. I'll update my Button Lite widget accordingly, putting it into a custom namespace instead of the ui-namespace.

Please sign in to comment.
You can’t perform that action at this time.