From 80f497a889de3c29870810581c75017f846db9dc Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 7 Mar 2011 12:35:11 -0600 Subject: Fixed memory leak caused by certificate dialogs. Ticket 1054 --- install/ui/dialog.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'install/ui/dialog.js') diff --git a/install/ui/dialog.js b/install/ui/dialog.js index c3efc25a..1b2f3192 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -36,6 +36,7 @@ IPA.dialog = function(spec) { that._entity_name = spec.entity_name; that.width = spec.width || '400px'; + that.height = spec.height; that.buttons = {}; @@ -173,7 +174,11 @@ IPA.dialog = function(spec) { */ that.open = function(container) { - that.container = $('
').appendTo(container); + that.container = $('
'); + + if (container) { + container.append(that.container); + } if (that.template) { var template = IPA.get_template(that.template); -- cgit