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
|
(options.closeOnEscape && ev.keyCode
|
||||||
&& ev.keyCode == $.keyCode.ESCAPE && self.close());
|
&& ev.keyCode == $.keyCode.ESCAPE && self.close());
|
||||||
})
|
})
|
||||||
.attr("role","dialog")
|
.attr({
|
||||||
.attr("aria-labelledby", titleId)
|
role: 'dialog',
|
||||||
|
'aria-labelledby': titleId
|
||||||
|
})
|
||||||
.mouseup(function() {
|
.mouseup(function() {
|
||||||
self.moveToTop();
|
self.moveToTop();
|
||||||
}),
|
}),
|
||||||
|
@ -25,10 +25,12 @@ $.widget("ui.progressbar", {
|
|||||||
this.element
|
this.element
|
||||||
.addClass("ui-progressbar")
|
.addClass("ui-progressbar")
|
||||||
.width(options.width)
|
.width(options.width)
|
||||||
.attr("role","progressbar")
|
.attr({
|
||||||
.attr("aria-valuemin","0")
|
role: "progressbar",
|
||||||
.attr("aria-valuemax","100")
|
"aria-valuemin": 0,
|
||||||
.attr("aria-valuenow","0");
|
"aria-valuemax": 100,
|
||||||
|
"aria-valuenow": 0
|
||||||
|
});
|
||||||
|
|
||||||
$.extend(this, {
|
$.extend(this, {
|
||||||
active: false,
|
active: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user