Skip to content

Commit

Permalink
Dialog: Fixed stacking problem with modal dialogs.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Jun 26, 2008
1 parent acca0ba commit bb00461
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/ui.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bb00461

Please sign in to comment.