mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed memory leak caused by IPA.dialog.
Ticket 1054
This commit is contained in:
parent
c6ee105ec1
commit
f4b8b36959
@ -186,7 +186,10 @@ IPA.dialog = function(spec) {
|
|||||||
'modal': true,
|
'modal': true,
|
||||||
'width': that.width,
|
'width': that.width,
|
||||||
'height': that.height,
|
'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,
|
'modal': true,
|
||||||
'width': that.width,
|
'width': that.width,
|
||||||
'height': that.height,
|
'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();
|
return that.selected_table.save();
|
||||||
};
|
};
|
||||||
|
|
||||||
that.close = function() {
|
|
||||||
that.container.dialog('close');
|
|
||||||
};
|
|
||||||
|
|
||||||
that.adder_dialog_init = that.init;
|
that.adder_dialog_init = that.init;
|
||||||
that.adder_dialog_create = that.create;
|
that.adder_dialog_create = that.create;
|
||||||
that.adder_dialog_setup = that.setup;
|
that.adder_dialog_setup = that.setup;
|
||||||
|
Loading…
Reference in New Issue
Block a user