Fixed memory leak caused by certificate dialogs.

Ticket 1054
This commit is contained in:
Endi S. Dewata
2011-03-07 12:35:11 -06:00
committed by Adam Young
parent 154ed91457
commit 80f497a889
2 changed files with 188 additions and 236 deletions

View File

@@ -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);