Fixed memory leak caused by IPA.dialog.

Ticket 1054
This commit is contained in:
Endi S. Dewata 2011-03-04 13:58:21 -06:00 committed by Adam Young
parent c6ee105ec1
commit f4b8b36959

View File

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