pod page, zone 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 09:40:42 -08:00
parent 13d051df80
commit fb04b04835
4 changed files with 18 additions and 10 deletions

View File

@ -681,8 +681,10 @@ var hostActionMap = {
$midmenuItem1.slideUp("slow", function() {
$(this).remove();
});
clearRightPanel();
hostClearRightPanel();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
hostClearRightPanel();
}
}
},
"Update OS Preference": {

View File

@ -879,9 +879,11 @@ var podActionMap = {
afterActionSeccessFn: function(json, $midmenuItem1, id) {
$midmenuItem1.slideUp("slow", function() {
$(this).remove();
});
clearRightPanel();
podJsonClearRightPanel();
});
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
podJsonClearRightPanel();
}
}
}
}

View File

@ -225,8 +225,10 @@ var primarystorageActionMap = {
$midmenuItem1.slideUp("slow", function() {
$(this).remove();
});
clearRightPanel();
primarystorageClearRightPanel();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
primarystorageClearRightPanel();
}
}
}
}

View File

@ -912,9 +912,11 @@ var zoneActionMap = {
afterActionSeccessFn: function(json, $leftmenuItem1, id) {
$leftmenuItem1.slideUp(function() {
$(this).remove();
});
clearRightPanel();
zoneJsonClearRightPanel();
});
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
zoneJsonClearRightPanel();
}
}
}
}