Skip to content
Permalink
Browse files

Dialog: Fixed #3753: Cleaned ui hash in callbacks.

  • Loading branch information...
scottgonzalez committed Jan 3, 2009
1 parent bb3328d commit 913d6fd35a89e2660d967f8b86da6d62a119ea3e
Showing with 5 additions and 5 deletions.
  1. +5 −5 ui/ui.dialog.js
@@ -161,7 +161,7 @@ $.widget("ui.dialog", {
},

close: function() {
if (false === this._trigger('beforeclose', null, { options: this.options })) {
if (false === this._trigger('beforeclose')) {
return;
}

@@ -170,7 +170,7 @@ $.widget("ui.dialog", {
.hide(this.options.hide)
.unbind('keypress.ui-dialog');

this._trigger('close', null, { options: this.options });
this._trigger('close');
$.ui.dialog.overlay.resize();

this._isOpen = false;
@@ -186,7 +186,7 @@ $.widget("ui.dialog", {

if ((this.options.modal && !force)
|| (!this.options.stack && !this.options.modal)) {
return this._trigger('focus', null, { options: this.options });
return this._trigger('focus');
}

var maxZ = this.options.zIndex, options = this.options;
@@ -200,7 +200,7 @@ $.widget("ui.dialog", {
var saveScroll = { scrollTop: this.element.attr('scrollTop'), scrollLeft: this.element.attr('scrollLeft') };
this.uiDialog.css('z-index', ++maxZ);
this.element.attr(saveScroll);
this._trigger('focus', null, { options: this.options });
this._trigger('focus');
},

open: function() {
@@ -235,7 +235,7 @@ $.widget("ui.dialog", {
}));

this.uiDialog.find(':tabbable:first').focus();
this._trigger('open', null, { options: this.options });
this._trigger('open');
this._isOpen = true;
},

0 comments on commit 913d6fd

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