mirror of https://github.com/apache/cloudstack.git
bug 11070: cloudStack - delete cluster/host/network/pod/primaryStorage/secondaryStorage/zone - fix a bug that an API error showed after account was deleted ("listxxxxxxx&id=N")
This commit is contained in:
parent
f91d173511
commit
45a927b3d5
|
|
@ -173,13 +173,11 @@ var clusterActionMap = {
|
|||
dialogBeforeActionFn : doDeleteCluster,
|
||||
inProcessText: "label.action.delete.cluster.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();
|
||||
clusterClearRightPanel();
|
||||
}
|
||||
});
|
||||
$midmenuItem1.remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
clusterClearRightPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -586,13 +586,11 @@ var hostActionMap = {
|
|||
dialogBeforeActionFn: doRemoveHost,
|
||||
inProcessText: "label.action.remove.host.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();
|
||||
hostClearRightPanel();
|
||||
}
|
||||
});
|
||||
$midmenuItem1.remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
hostClearRightPanel();
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.action.update.OS.preference": {
|
||||
|
|
|
|||
|
|
@ -1519,13 +1519,11 @@ var directNetworkActionMap = {
|
|||
dialogBeforeActionFn : doDeleteDirectNetwork,
|
||||
inProcessText: "label.action.delete.network.processing",
|
||||
afterActionSeccessFn: function(json, $midmenuItem1, id) {
|
||||
$midmenuItem1.slideUp("slow", function() {
|
||||
$(this).remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#direct_network_page").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
directNetworkClearRightPanel();
|
||||
}
|
||||
});
|
||||
$midmenuItem1.remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#direct_network_page").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
directNetworkClearRightPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -350,6 +350,8 @@ function podClearDetailsTab() {
|
|||
|
||||
$thisTab.find("#gateway").text("");
|
||||
$thisTab.find("#gateway_edit").val("");
|
||||
|
||||
$thisTab.find("#allocationstate").text("");
|
||||
}
|
||||
|
||||
function getIpRange(startip, endip) {
|
||||
|
|
@ -1132,13 +1134,11 @@ var podActionMap = {
|
|||
dialogBeforeActionFn : doDeletePod,
|
||||
inProcessText: "label.action.delete.pod.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();
|
||||
podClearRightPanel();
|
||||
}
|
||||
});
|
||||
$midmenuItem1.remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
podClearRightPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -278,13 +278,11 @@ var primarystorageActionMap = {
|
|||
dialogBeforeActionFn: doDeletePrimaryStorage,
|
||||
inProcessText: "label.action.delete.primary.storage.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();
|
||||
primarystorageClearRightPanel();
|
||||
}
|
||||
});
|
||||
$midmenuItem1.remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
primarystorageClearRightPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,13 +168,11 @@ var secondaryStorageActionMap = {
|
|||
dialogBeforeActionFn: doDeleteSecondaryStorage,
|
||||
inProcessText: "label.action.delete.secondary.storage.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();
|
||||
secondaryStorageClearRightPanel();
|
||||
}
|
||||
});
|
||||
$midmenuItem1.remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
secondaryStorageClearRightPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -396,13 +396,11 @@ var zoneActionMap = {
|
|||
dialogBeforeActionFn : doDeleteZone,
|
||||
inProcessText: "label.action.delete.zone.processing",
|
||||
afterActionSeccessFn: function(json, $leftmenuItem1, id) {
|
||||
$leftmenuItem1.slideUp(function() {
|
||||
$(this).remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
zoneJsonClearRightPanel();
|
||||
}
|
||||
});
|
||||
$leftmenuItem1.remove();
|
||||
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
|
||||
clearRightPanel();
|
||||
zoneJsonClearRightPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue