mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Don't hard-code widget data key. Fixes #9097 - UI dialog inheritance.
This commit is contained in:
parent
a692bf9b70
commit
5e1b8dc71a
3
ui/jquery.ui.dialog.js
vendored
3
ui/jquery.ui.dialog.js
vendored
@ -697,6 +697,7 @@ $.widget( "ui.dialog", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var widgetFullName = this.widgetFullName;
|
||||||
if ( !$.ui.dialog.overlayInstances ) {
|
if ( !$.ui.dialog.overlayInstances ) {
|
||||||
// Prevent use of anchors and inputs.
|
// Prevent use of anchors and inputs.
|
||||||
// We use a delay in case the overlay is created from an
|
// 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.target ).closest(".ui-datepicker").length ) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$(".ui-dialog:visible:last .ui-dialog-content")
|
$(".ui-dialog:visible:last .ui-dialog-content")
|
||||||
.data("ui-dialog")._focusTabbable();
|
.data( widgetFullName )._focusTabbable();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user