mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed memory leak caused by certificate dialogs.
Ticket 1054
This commit is contained in:
committed by
Adam Young
parent
154ed91457
commit
80f497a889
@@ -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);
|
||||
|
Reference in New Issue
Block a user