diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-02-18 16:07:15 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-02-18 16:07:15 -0500 |
commit | 5e1b8dc71a72d5753a95c49c844857b91fbdbade (patch) | |
tree | 6391a5c6b2ceac991508b213acb7dca7e472d741 /ui/jquery.ui.dialog.js | |
parent | a692bf9b70305de5e9893e717fc71e1e74fb86ac (diff) | |
download | jquery-ui-5e1b8dc71a72d5753a95c49c844857b91fbdbade.tar.gz jquery-ui-5e1b8dc71a72d5753a95c49c844857b91fbdbade.zip |
Dialog: Don't hard-code widget data key. Fixes #9097 - UI dialog inheritance.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 85dbddda2..9d61cf745 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -697,6 +697,7 @@ $.widget( "ui.dialog", { return; } + var widgetFullName = this.widgetFullName; if ( !$.ui.dialog.overlayInstances ) { // Prevent use of anchors and inputs. // We use a delay in case the overlay is created from an @@ -711,7 +712,7 @@ $.widget( "ui.dialog", { !$( event.target ).closest(".ui-datepicker").length ) { event.preventDefault(); $(".ui-dialog:visible:last .ui-dialog-content") - .data("ui-dialog")._focusTabbable(); + .data( widgetFullName )._focusTabbable(); } }); } |