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

This commit is contained in:
Jessica Wang 2011-08-11 14:29:03 -07:00
parent 9e1ee30ea3
commit 0fcd364412
3 changed files with 15 additions and 21 deletions

View File

@ -376,13 +376,11 @@ var diskOfferingActionMap = {
dialogBeforeActionFn : doDeleteDiskOffering,
inProcessText: "label.action.delete.disk.offering.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();
diskOfferingClearRightPanel();
}
});
$midmenuItem1.remove();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
diskOfferingClearRightPanel();
}
}
}
}

View File

@ -391,13 +391,11 @@ var serviceOfferingActionMap = {
dialogBeforeActionFn : doDeleteServiceOffering,
inProcessText: "label.action.delete.service.offering.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();
serviceOfferingClearRightPanel();
}
});
$midmenuItem1.remove();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
serviceOfferingClearRightPanel();
}
}
}
}

View File

@ -401,13 +401,11 @@ var systemServiceOfferingActionMap = {
dialogBeforeActionFn : doDeleteSystemServiceOffering,
inProcessText: "label.action.delete.service.offering.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();
systemServiceOfferingClearRightPanel();
}
});
$midmenuItem1.remove();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
systemServiceOfferingClearRightPanel();
}
}
}
}