bug 11070: cloudStack - delete account - fix a bug that an API error showed after account was deleted ("listAccounts&id=N")

This commit is contained in:
Jessica Wang 2011-08-11 11:01:24 -07:00
parent a562383f58
commit f68caf5884

View File

@ -615,13 +615,11 @@ var accountActionMap = {
dialogBeforeActionFn : doDeleteAccount,
inProcessText: "label.action.delete.account.processing",
afterActionSeccessFn: function(json, $midmenuItem1, id) {
$midmenuItem1.slideUp("slow", function() {
$(this).remove();
$midmenuItem1.remove();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
accountClearRightPanel();
}
});
}
}
};