Skip to content
Permalink
Browse files

Dialog: Removed $.ui.dialog.topMostDialog - added for performance imp…

…rovement, but not needed and could cause problems.
  • Loading branch information...
scottgonzalez committed Feb 19, 2009
1 parent 3c7e1b3 commit dcbd427cdf20dfcf847d9daa22b591fac6893330
Showing with 1 addition and 4 deletions.
  1. +1 −4 ui/ui.dialog.js
@@ -177,16 +177,14 @@ $.widget("ui.dialog", {
// position on open
moveToTop: function(force, event) {

if ($.ui.dialog.topMostDialog == this
|| (this.options.modal && !force)
if ((this.options.modal && !force)
|| (!this.options.stack && !this.options.modal)) {
return this._trigger('focus', event);
}

if (this.options.zIndex > $.ui.dialog.maxZ) {
$.ui.dialog.maxZ = this.options.zIndex;
}
$.ui.dialog.topMostDialog = this;
(this.overlay && this.overlay.$el.css('z-index', $.ui.dialog.overlay.maxZ = ++$.ui.dialog.maxZ));

//Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed.
@@ -503,7 +501,6 @@ $.extend($.ui.dialog, {

uuid: 0,
maxZ: 0,
topMostDialog: null,

getTitleId: function($el) {
return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid);

0 comments on commit dcbd427

Please sign in to comment.
You can’t perform that action at this time.