aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.progressbar.js
diff options
context:
space:
mode:
authorDavid Bolter <david.bolter@gmail.com>2008-11-05 19:43:21 +0000
committerDavid Bolter <david.bolter@gmail.com>2008-11-05 19:43:21 +0000
commitb420cbb3ce9b5c1910ff41a65613e33463f88cd7 (patch)
tree17aad698e43a98d6186c3570aa09b95de3c22b9d /ui/ui.progressbar.js
parentf425cae7c4e894c6aa9fc1fefa8e5a426864f959 (diff)
downloadjquery-ui-b420cbb3ce9b5c1910ff41a65613e33463f88cd7.tar.gz
jquery-ui-b420cbb3ce9b5c1910ff41a65613e33463f88cd7.zip
Tweaking attr to normalize for FF2 ARIA implementation. Removed ariaRole and ariaState API. (Assist: Scott González, Fixes #3529)
Diffstat (limited to 'ui/ui.progressbar.js')
-rw-r--r--ui/ui.progressbar.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js
index e2266ea68..4f4fead64 100644
--- a/ui/ui.progressbar.js
+++ b/ui/ui.progressbar.js
@@ -25,10 +25,10 @@ $.widget("ui.progressbar", {
this.element
.addClass("ui-progressbar")
.width(options.width)
- .ariaRole("progressbar")
- .ariaState("valuemin","0")
- .ariaState("valuemax","100")
- .ariaState("valuenow","0");
+ .attr("role","progressbar")
+ .attr("aria-valuemin","0")
+ .attr("aria-valuemax","100")
+ .attr("aria-valuenow","0");
$.extend(this, {
active: false,
@@ -103,13 +103,13 @@ $.widget("ui.progressbar", {
disable: function() {
this.element.addClass("ui-progressbar-disabled");
this.disabled = true;
- this.element.ariaState("disabled", true);
+ this.element.attr("aria-disabled", true);
},
enable: function() {
this.element.removeClass("ui-progressbar-disabled");
this.disabled = false;
- this.element.ariaState("disabled", false);
+ this.element.attr("aria-disabled", false);
},
pause: function() {
@@ -132,7 +132,7 @@ $.widget("ui.progressbar", {
if (this.options.range && !this.options.text) {
this.textElement.html(percent + '%');
}
- this.element.ariaState("valuenow", percent);
+ this.element.attr("aria-valuenow", percent);
this._propagate('progress', this.ui());
},