mirror of https://github.com/apache/cloudstack.git
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:
parent
9e1ee30ea3
commit
0fcd364412
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue