Dialog: Fixed stacking problem with modal dialogs.

This commit is contained in:
Scott González
2008-06-26 01:26:13 +00:00
parent acca0ba85a
commit bb004614fd

View 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() {