aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.progressbar.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2013-03-11 21:28:51 -0400
committerMike Sherov <mike.sherov@gmail.com>2013-03-11 22:08:21 -0400
commit4d67f4f34908a50ef88f95df4103ee001b777e45 (patch)
treee14cd5bcc22a960ab65db9bd6567f9b8638ce272 /ui/jquery.ui.progressbar.js
parent4f95a0f396965e91982f1b5e67da814bb6640ce1 (diff)
downloadjquery-ui-4d67f4f34908a50ef88f95df4103ee001b777e45.tar.gz
jquery-ui-4d67f4f34908a50ef88f95df4103ee001b777e45.zip
Widget: Stop setting ui-state-disabled and aria by default on setting disabled option.
Fixes #5973 - Resizable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled Fixes #5974 - Draggable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled Fixes #6039 - Droppable : disabled should not have ui-state-disabled
Diffstat (limited to 'ui/jquery.ui.progressbar.js')
-rw-r--r--ui/jquery.ui.progressbar.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js
index 9e959ebc4..0eaa8b41e 100644
--- a/ui/jquery.ui.progressbar.js
+++ b/ui/jquery.ui.progressbar.js
@@ -97,7 +97,11 @@ $.widget( "ui.progressbar", {
// Don't allow a max less than min
value = Math.max( this.min, value );
}
-
+ if ( key === "disabled" ) {
+ this.element
+ .toggleClass( "ui-state-disabled", !!value )
+ .attr( "aria-disabled", value );
+ }
this._super( key, value );
},