]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Fixed stacking problem with modal dialogs.
authorScott González <scott.gonzalez@gmail.com>
Thu, 26 Jun 2008 01:26:13 +0000 (01:26 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 26 Jun 2008 01:26:13 +0000 (01:26 +0000)
ui/ui.dialog.js

index 120a855e306b770f12f1340ced423bc78fb0eb0a..7731309a9e607ac194ba905355ae77bd69ab6028 100644 (file)
@@ -260,7 +260,8 @@ $.widget("ui.dialog", {
        // the force parameter allows us to move modal dialogs to their correct
        // position on open
        moveToTop: function(force) {
-               if ((this.options.modal && !force) || !this.options.stack) { return; }
+               if ((this.options.modal && !force)
+                       || (!this.options.stack && !this.options.modal)) { return; }
                
                var maxZ = this.options.zIndex, options = this.options;
                $('.ui-dialog:visible').each(function() {