summaryrefslogtreecommitdiffstats
path: root/install/ui/dialog.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-03-07 12:35:11 -0600
committerAdam Young <ayoung@redhat.com>2011-03-07 14:53:29 -0500
commit80f497a889de3c29870810581c75017f846db9dc (patch)
tree61c1c36de2925fce4daabbf634eabc782c2720cc /install/ui/dialog.js
parent154ed91457a258013a2f15cbbbf5adc36cf0e20a (diff)
downloadfreeipa-80f497a889de3c29870810581c75017f846db9dc.tar.gz
freeipa-80f497a889de3c29870810581c75017f846db9dc.tar.xz
freeipa-80f497a889de3c29870810581c75017f846db9dc.zip
Fixed memory leak caused by certificate dialogs.
Ticket 1054
Diffstat (limited to 'install/ui/dialog.js')
-rw-r--r--install/ui/dialog.js7
1 files changed, 6 insertions, 1 deletions
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 = $('<div/>').appendTo(container);
+ that.container = $('<div/>');
+
+ if (container) {
+ container.append(that.container);
+ }
if (that.template) {
var template = IPA.get_template(that.template);