summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-03-04 13:58:21 -0600
committerAdam Young <ayoung@redhat.com>2011-03-04 16:39:07 -0500
commitf4b8b369598f3c5678f65c923b84f28eabbec957 (patch)
tree20023a9864c8a22fbd3456088f82744a60578f37
parentc6ee105ec171662a3f0839e05bfac6176340aa7b (diff)
downloadfreeipa-f4b8b369598f3c5678f65c923b84f28eabbec957.zip
freeipa-f4b8b369598f3c5678f65c923b84f28eabbec957.tar.gz
freeipa-f4b8b369598f3c5678f65c923b84f28eabbec957.tar.xz
Fixed memory leak caused by IPA.dialog.
Ticket 1054
-rw-r--r--install/ui/dialog.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js
index cfddd51..c3efc25 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;