Skip to content
Permalink
Browse files

Dialog, Progressbar: Combined ARIA attribute settings into one .attr(…

…) call.
  • Loading branch information...
scottgonzalez committed Nov 7, 2008
1 parent d942907 commit fc406b754ced61338b553133c7225367bca1534f
Showing with 10 additions and 6 deletions.
  1. +4 −2 ui/ui.dialog.js
  2. +6 −4 ui/ui.progressbar.js
@@ -83,8 +83,10 @@ $.widget("ui.dialog", {
(options.closeOnEscape && ev.keyCode
&& ev.keyCode == $.keyCode.ESCAPE && self.close());
})
.attr("role","dialog")
.attr("aria-labelledby", titleId)
.attr({
role: 'dialog',
'aria-labelledby': titleId
})
.mouseup(function() {
self.moveToTop();
}),
@@ -25,10 +25,12 @@ $.widget("ui.progressbar", {
this.element
.addClass("ui-progressbar")
.width(options.width)
.attr("role","progressbar")
.attr("aria-valuemin","0")
.attr("aria-valuemax","100")
.attr("aria-valuenow","0");
.attr({
role: "progressbar",
"aria-valuemin": 0,
"aria-valuemax": 100,
"aria-valuenow": 0
});

$.extend(this, {
active: false,

0 comments on commit fc406b7

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