From 55360eeb7eae5c560d51b09178e64d83c59223a6 Mon Sep 17 00:00:00 2001 From: David Sullivan Date: Sat, 26 Jan 2013 04:03:14 -0600 Subject: Dialog: modified _createOverlay to _appendTo instead of document.body. Fixed #8984 - Modal dialogs display behind overlay when using appendTo option --- ui/jquery.ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/jquery.ui.dialog.js') diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 1d3a7a88f..ec4032ff3 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -695,7 +695,7 @@ $.widget( "ui.dialog", { this.overlay = $("
") .addClass("ui-widget-overlay ui-front") - .appendTo( this.document[0].body ); + .appendTo( this._appendTo() ); this._on( this.overlay, { mousedown: "_keepFocus" }); -- cgit v1.2.3