Skip to content
Permalink
Browse files

Dialog: Don't hard-code widget data key. Fixes #9097 - UI dialog inhe…

…ritance.
  • Loading branch information...
scottgonzalez committed Feb 18, 2013
1 parent a692bf9 commit 5e1b8dc71a72d5753a95c49c844857b91fbdbade
Showing with 2 additions and 1 deletion.
  1. +2 −1 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();
}
});
}

0 comments on commit 5e1b8dc

Please sign in to comment.
You can’t perform that action at this time.