From bb004614fd97687091e8c0f86e078cc7a21f2dfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 26 Jun 2008 01:26:13 +0000 Subject: [PATCH] Dialog: Fixed stacking problem with modal dialogs. --- ui/ui.dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 120a855e3..7731309a9 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -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() { -- 2.39.5