]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Fixed #4015: Set z-index on shadow when the dialog opens.
authorScott González <scott.gonzalez@gmail.com>
Sun, 1 Feb 2009 01:29:58 +0000 (01:29 +0000)
committerScott González <scott.gonzalez@gmail.com>
Sun, 1 Feb 2009 01:29:58 +0000 (01:29 +0000)
ui/ui.dialog.js

index ac43fcdc346f015c4b77e6cfd4b996686eb818d8..a9c219a135016984723efb142f0d4d8c9150976f 100644 (file)
@@ -210,6 +210,7 @@ $.widget("ui.dialog", {
                this._size();
                this._position(options.position);
                uiDialog.show(options.show);
+               (options.shadow && this._createShadow());
                this.moveToTop(true, event);
 
                // prevent tabbing out of modal dialogs
@@ -244,8 +245,6 @@ $.widget("ui.dialog", {
                        .filter(':first')
                        .focus();
 
-               (options.shadow && this._createShadow());
-
                this._trigger('open', event);
                this._isOpen = true;
        },