diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-09-11 23:22:25 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-09-11 23:22:25 +0000 |
commit | 7e9dcd21defaba1038a0a4901d0b02a6817472d9 (patch) | |
tree | 82cf59d7dee7a80e6f153220168080ad5e5c734d /ui | |
parent | bb84cbf7fd345d8bf37f637604e607db4ce772a7 (diff) | |
download | jquery-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.js | 1 |
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; }, |