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/certificate.js | 449 ++++++++++++++++++++-------------------------- 1 file changed, 198 insertions(+), 251 deletions(-) (limited to 'install/ui/certificate.js') diff --git a/install/ui/certificate.js b/install/ui/certificate.js index c5de56c1..fea7448c 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -78,39 +78,27 @@ IPA.cert.get_dialog = function(spec) { spec = spec || {}; - var that = {}; + var that = IPA.dialog(spec); + + that.width = spec.width || 500; + that.height = spec.height || 400; - that.title = spec.title || ''; that.usercertificate = spec.usercertificate || ''; - var dialog = $('
', { - 'title': that.title + that.add_button(IPA.messages.buttons.close, function() { + that.close(); }); - var textarea = $('