aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-09-11 23:22:25 +0000
committerScott González <scott.gonzalez@gmail.com>2008-09-11 23:22:25 +0000
commit7e9dcd21defaba1038a0a4901d0b02a6817472d9 (patch)
tree82cf59d7dee7a80e6f153220168080ad5e5c734d /ui
parentbb84cbf7fd345d8bf37f637604e607db4ce772a7 (diff)
downloadjquery-ui-7e9dcd21defaba1038a0a4901d0b02a6817472d9.tar.gz
jquery-ui-7e9dcd21defaba1038a0a4901d0b02a6817472d9.zip
Dialog: Partial fix for #3327: When opening a dialog, give focus to the first tabbable element inside the dialog.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.dialog.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 0f3511b83..2670d0ef2 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -290,6 +290,7 @@ $.widget("ui.dialog", {
}
}));
+ this.uiDialog.find(':tabbable:first').focus();
this._trigger('open', null, { options: this.options });
this._isOpen = true;
},