diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-11-07 13:57:31 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-11-07 13:57:31 +0000 |
commit | fc406b754ced61338b553133c7225367bca1534f (patch) | |
tree | 3bed6d578d4d051fdc4cba9b05602d55c4d488e5 /ui | |
parent | d942907043e6e2e08217ea99e258fca72cfb7699 (diff) | |
download | jquery-ui-fc406b754ced61338b553133c7225367bca1534f.tar.gz jquery-ui-fc406b754ced61338b553133c7225367bca1534f.zip |
Dialog, Progressbar: Combined ARIA attribute settings into one .attr() call.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.dialog.js | 6 | ||||
-rw-r--r-- | ui/ui.progressbar.js | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 22ed2bb18..354c696f7 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.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(); }), diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js index 4f4fead64..16b7b8967 100644 --- a/ui/ui.progressbar.js +++ b/ui/ui.progressbar.js @@ -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, |