From f68caf588437fce8399518233f79b6690b9b94ce Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 11 Aug 2011 11:01:24 -0700 Subject: [PATCH] bug 11070: cloudStack - delete account - fix a bug that an API error showed after account was deleted ("listAccounts&id=N") --- ui/scripts/cloud.core.account.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/ui/scripts/cloud.core.account.js b/ui/scripts/cloud.core.account.js index a0046fc72ef..e0f1a55d41d 100644 --- a/ui/scripts/cloud.core.account.js +++ b/ui/scripts/cloud.core.account.js @@ -384,7 +384,7 @@ function accountJsonToDetailsTab() { accountClearDetailsTab(); return; } - + $.ajax({ data: createURL("command=listAccounts&id="+jsonObj.id), dataType: "json", @@ -614,14 +614,12 @@ var accountActionMap = { asyncJobResponse: "deleteaccountresponse", dialogBeforeActionFn : doDeleteAccount, inProcessText: "label.action.delete.account.processing", - afterActionSeccessFn: function(json, $midmenuItem1, id) { - $midmenuItem1.slideUp("slow", function() { - $(this).remove(); - if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) { - clearRightPanel(); - accountClearRightPanel(); - } - }); + afterActionSeccessFn: function(json, $midmenuItem1, id) { + $midmenuItem1.remove(); + if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) { + clearRightPanel(); + accountClearRightPanel(); + } } } };