service offering page, disk offering page - clear right panel after middle menu item is removed from DOM.

This commit is contained in:
Jessica Wang 2011-01-13 11:55:15 -08:00
parent 23e5a01315
commit 3b3aa07a6f
2 changed files with 12 additions and 12 deletions

View File

@ -330,12 +330,12 @@ var diskOfferingActionMap = {
inProcessText: "Deleting disk offering....",
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();
}
$(this).remove();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
diskOfferingClearRightPanel();
}
});
}
}
}

View File

@ -330,12 +330,12 @@ var serviceOfferingActionMap = {
inProcessText: "Deleting service offering....",
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();
}
$(this).remove();
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
clearRightPanel();
serviceOfferingClearRightPanel();
}
});
}
}
}