mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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
This commit is contained in:
parent
c49be0be1a
commit
4657bd85bc
4
ui/jquery.ui.widget.js
vendored
4
ui/jquery.ui.widget.js
vendored
@ -155,7 +155,7 @@ $.Widget.prototype = {
|
|||||||
.removeAttr( "aria-disabled" )
|
.removeAttr( "aria-disabled" )
|
||||||
.removeClass(
|
.removeClass(
|
||||||
this.widgetBaseClass + "-disabled " +
|
this.widgetBaseClass + "-disabled " +
|
||||||
this.namespace + "-state-disabled" );
|
"ui-state-disabled" );
|
||||||
},
|
},
|
||||||
|
|
||||||
widget: function() {
|
widget: function() {
|
||||||
@ -192,7 +192,7 @@ $.Widget.prototype = {
|
|||||||
this.widget()
|
this.widget()
|
||||||
[ value ? "addClass" : "removeClass"](
|
[ value ? "addClass" : "removeClass"](
|
||||||
this.widgetBaseClass + "-disabled" + " " +
|
this.widgetBaseClass + "-disabled" + " " +
|
||||||
this.namespace + "-state-disabled" )
|
"ui-state-disabled" )
|
||||||
.attr( "aria-disabled", value );
|
.attr( "aria-disabled", value );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user