Skip to main content

Bug Tracker

Side navigation

Ticket #2341: dialog.patch
File dialog.patch, 0.6 KB (added by StrikerNL, March 04, 2008 05:31PM UTC)

my fix, works for me

--- ui.dialog.orig.js	2008-02-13 02:12:10.000000000 +0100
+++ ui.dialog.js	2008-03-03 19:43:30.000000000 +0100
@@ -118,7 +118,15 @@
 		
 		// TODO: determine if this is necessary for modal dialogs
 		options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe();
-		
+
+		this.destroy = function () {
+			var el = this.element;
+			$(el).unbind("setData.dialog");
+			$(el).unbind("getData.dialog");
+			$(el).removeClass('ui-dialog-content');
+			$(el).parent().parent().before(el).remove();
+		};		
+
 		this.open = function() {
 			options.modal && overlay.show(self, options.overlay);
 			uiDialog.appendTo('body');

Download in other formats:

Original Format