From 6e7e808d692423fe4faa0089a036e9a0c2c1800c Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 6 Dec 2008 14:58:52 +0000 Subject: Dialog: Fixed #3637: Added role of button to close link. --- ui/ui.dialog.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ui') 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 = $('
')) .addClass('ui-dialog-titlebar') - .append('X') .mousedown(function() { self.moveToTop(); }) .prependTo(uiDialogContainer), + uiDialogTitlebarClose = $('') + .addClass('ui-dialog-titlebar-close') + .attr('role', 'button') + .appendTo(uiDialogTitlebar), + + uiDialogTitlebarCloseText = (this.uiDialogTitlebarCloseText = $('')) + .html('X') + .appendTo(uiDialogTitlebarClose), + title = options.title || ' ', titleId = $.ui.dialog.getTitleId(this.element), uiDialogTitle = $('') -- cgit v1.2.3