cluster page, network page, secondary storage page - not update right panel after an action succeeds since the action might not belong to currently selected middle menu item.

This commit is contained in:
Jessica Wang 2011-01-13 10:13:41 -08:00
parent fb04b04835
commit 7e7a5f3e45
3 changed files with 14 additions and 7 deletions

View File

@ -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();
}
}
}
}

View File

@ -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();
}
}
}
}

View File

@ -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();
}
}
}
}