diff --git a/ui/scripts/cloud.core.cluster.js b/ui/scripts/cloud.core.cluster.js index e09ef3ea86f..2f90f04a1bc 100644 --- a/ui/scripts/cloud.core.cluster.js +++ b/ui/scripts/cloud.core.cluster.js @@ -105,8 +105,10 @@ var clusterActionMap = { $midmenuItem1.slideUp("slow", function() { $(this).remove(); }); - clearRightPanel(); - clusterClearRightPanel(); + if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) { + clearRightPanel(); + clusterClearRightPanel(); + } } } } diff --git a/ui/scripts/cloud.core.network.js b/ui/scripts/cloud.core.network.js index 50f0bf891c9..a89ba96452c 100644 --- a/ui/scripts/cloud.core.network.js +++ b/ui/scripts/cloud.core.network.js @@ -914,7 +914,8 @@ function directNetworkJsonClearDetailsTab() { $thisTab.find("#grid_header_title").text(""); $thisTab.find("#id").text(""); $thisTab.find("#name").text(""); - $thisTab.find("#displaytext").text(""); + $thisTab.find("#displaytext").text(""); + $thisTab.find("#default").text(""); $thisTab.find("#vlan").text(""); $thisTab.find("#gateway").text(""); $thisTab.find("#netmask").text(""); @@ -1229,9 +1230,11 @@ var directNetworkActionMap = { afterActionSeccessFn: function(json, $midmenuItem1, id) { $midmenuItem1.slideUp("slow", function() { $(this).remove(); - }); - clearRightPanel(); - directNetworkClearRightPanel(); + }); + if(id.toString() == $("#right_panel_content").find("#direct_network_page").find("#tab_content_details").find("#id").text()) { + clearRightPanel(); + directNetworkClearRightPanel(); + } } } } diff --git a/ui/scripts/cloud.core.secondarystorage.js b/ui/scripts/cloud.core.secondarystorage.js index a140dea0d09..172d5bb8228 100644 --- a/ui/scripts/cloud.core.secondarystorage.js +++ b/ui/scripts/cloud.core.secondarystorage.js @@ -127,7 +127,9 @@ var secondaryStorageActionMap = { dialogBeforeActionFn: doDeleteSecondaryStorage, inProcessText: "Deleting Secondary Storage....", afterActionSeccessFn: function(json, $midmenuItem1, id) { - secondaryStorageJsonClearRightPanel(); + if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) { + secondaryStorageJsonClearRightPanel(); + } } } }