r1941 - trunk/ui

r1941 - trunk/ui


Author: scott.gonzalez
Date: Sat Jan 31 17:29:58 2009
New Revision: 1941
Modified:
trunk/ui/ui.dialog.js
Log:
Dialog: Fixed #4015: Set z-index on shadow when the dialog opens.
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js    (original)
+++ trunk/ui/ui.dialog.js    Sat Jan 31 17:29:58 2009
@@ -210,6 +210,7 @@
        this._size();
        this._position(options.position);
        uiDialog.show(options.show);
+        (options.shadow && this._createShadow());
        this.moveToTop(true, event);
        // prevent tabbing out of modal dialogs
@@ -243,8 +244,6 @@
            .add(uiDialog.find('.ui-dialog-titlebar :tabbable:first'))
            .filter(':first')
            .focus();
-
-        (options.shadow && this._createShadow());
        this._trigger('open', event);
        this._isOpen = true;