diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-12-06 14:58:52 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-12-06 14:58:52 +0000 |
commit | 6e7e808d692423fe4faa0089a036e9a0c2c1800c (patch) | |
tree | ddb5c129101fb2b4971c1f581949e60c5be78fb0 /ui | |
parent | 03909cb87c8419e6718b3c0d59adbd1bd5afa1ba (diff) | |
download | jquery-ui-6e7e808d692423fe4faa0089a036e9a0c2c1800c.tar.gz jquery-ui-6e7e808d692423fe4faa0089a036e9a0c2c1800c.zip |
Dialog: Fixed #3637: Added role of button to close link.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.dialog.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 83d144fc0..ae8f8da5b 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -52,12 +52,20 @@ $.widget("ui.dialog", { uiDialogTitlebar = (this.uiDialogTitlebar = $('<div/>')) .addClass('ui-dialog-titlebar') - .append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>') .mousedown(function() { self.moveToTop(); }) .prependTo(uiDialogContainer), + uiDialogTitlebarClose = $('<a href="#"/>') + .addClass('ui-dialog-titlebar-close') + .attr('role', 'button') + .appendTo(uiDialogTitlebar), + + uiDialogTitlebarCloseText = (this.uiDialogTitlebarCloseText = $('<span/>')) + .html('X') + .appendTo(uiDialogTitlebarClose), + title = options.title || ' ', titleId = $.ui.dialog.getTitleId(this.element), uiDialogTitle = $('<span/>') |