diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-03-04 13:58:21 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-03-04 16:39:07 -0500 |
commit | f4b8b369598f3c5678f65c923b84f28eabbec957 (patch) | |
tree | 20023a9864c8a22fbd3456088f82744a60578f37 /install | |
parent | c6ee105ec171662a3f0839e05bfac6176340aa7b (diff) | |
download | freeipa-f4b8b369598f3c5678f65c923b84f28eabbec957.tar.gz freeipa-f4b8b369598f3c5678f65c923b84f28eabbec957.tar.xz freeipa-f4b8b369598f3c5678f65c923b84f28eabbec957.zip |
Fixed memory leak caused by IPA.dialog.
Ticket 1054
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/dialog.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js index cfddd5194..c3efc25a8 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; |