mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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:
parent
a562383f58
commit
f68caf5884
@ -384,7 +384,7 @@ function accountJsonToDetailsTab() {
|
|||||||
accountClearDetailsTab();
|
accountClearDetailsTab();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: createURL("command=listAccounts&id="+jsonObj.id),
|
data: createURL("command=listAccounts&id="+jsonObj.id),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@ -614,14 +614,12 @@ var accountActionMap = {
|
|||||||
asyncJobResponse: "deleteaccountresponse",
|
asyncJobResponse: "deleteaccountresponse",
|
||||||
dialogBeforeActionFn : doDeleteAccount,
|
dialogBeforeActionFn : doDeleteAccount,
|
||||||
inProcessText: "label.action.delete.account.processing",
|
inProcessText: "label.action.delete.account.processing",
|
||||||
afterActionSeccessFn: function(json, $midmenuItem1, id) {
|
afterActionSeccessFn: function(json, $midmenuItem1, id) {
|
||||||
$midmenuItem1.slideUp("slow", function() {
|
$midmenuItem1.remove();
|
||||||
$(this).remove();
|
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
clearRightPanel();
|
||||||
clearRightPanel();
|
accountClearRightPanel();
|
||||||
accountClearRightPanel();
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user