mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog, Progressbar: Combined ARIA attribute settings into one .attr() call.
This commit is contained in:
parent
d942907043
commit
fc406b754c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user