Skip to main content

Search and Top Navigation

Ticket #4235: ui.dialog.js.patch
File ui.dialog.js.patch, 0.6 KB (added by aflynt, February 25, 2009 10:01PM UTC)

Patch for IE dialog close regression.

Index: ui.dialog.js
===================================================================
--- ui.dialog.js	(revision 2130)
+++ ui.dialog.js	(working copy)
@@ -163,11 +163,15 @@
 		(self.overlay && self.overlay.destroy());
 		self.uiDialog.unbind('keypress.ui-dialog');
 
-		(self.options.hide
-			? self.uiDialog.hide(self.options.hide, function() {
+		if (self.options.hide) {
+			self.uiDialog.hide(self.options.hide, function() {
 				self._trigger('close', event);
-			})
-			: self._trigger('close', event));
+			});
+		}
+		else {
+			self.uiDialog.hide();
+			self._trigger('close', event);
+		}
 
 		$.ui.dialog.overlay.resize();

Download in other formats:

Original Format