From f4b8b369598f3c5678f65c923b84f28eabbec957 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 4 Mar 2011 13:58:21 -0600 Subject: Fixed memory leak caused by IPA.dialog. Ticket 1054 --- install/ui/dialog.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install/ui/dialog.js b/install/ui/dialog.js index cfddd519..c3efc25a 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -186,7 +186,10 @@ IPA.dialog = function(spec) { 'modal': true, 'width': that.width, 'height': that.height, - 'buttons': that.buttons + 'buttons': that.buttons, + close: function(event, ui) { + that.close(); + } }); } ); @@ -200,7 +203,10 @@ IPA.dialog = function(spec) { 'modal': true, 'width': that.width, 'height': that.height, - 'buttons': that.buttons + 'buttons': that.buttons, + close: function(event, ui) { + that.close(); + } }); } }; @@ -486,10 +492,6 @@ IPA.adder_dialog = function (spec) { return that.selected_table.save(); }; - that.close = function() { - that.container.dialog('close'); - }; - that.adder_dialog_init = that.init; that.adder_dialog_create = that.create; that.adder_dialog_setup = that.setup; -- cgit