aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-01-25 08:51:13 -0500
committerScott González <scott.gonzalez@gmail.com>2013-01-25 08:51:13 -0500
commitc53198c2099d25e80887c86af6d0e624414cc2f7 (patch)
treec40cfc0f10c04f3648c981a392ecdd39a6936140 /ui
parentf20cd5429adac5d99f69c2de51d04b2d5f421799 (diff)
downloadjquery-ui-c53198c2099d25e80887c86af6d0e624414cc2f7.tar.gz
jquery-ui-c53198c2099d25e80887c86af6d0e624414cc2f7.zip
Dialog: Allow interaction with datepickers from modal dialogs. Fixes #8989 - Dialog: Cannot change month/year in datepicker within modal.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.dialog.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index bfe37235e..1d3a7a88f 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -679,7 +679,10 @@ $.widget( "ui.dialog", {
if ( $.ui.dialog.overlayInstances ) {
this._on( this.document, {
focusin: function( event ) {
- if ( !$( event.target ).closest(".ui-dialog").length ) {
+ if ( !$( event.target ).closest(".ui-dialog").length &&
+ // TODO: Remove hack when datepicker implements
+ // the .ui-front logic (#8989)
+ !$( event.target ).closest(".ui-datepicker").length ) {
event.preventDefault();
$(".ui-dialog:visible:last .ui-dialog-content")
.data("ui-dialog")._focusTabbable();