diff --git a/ui/scripts/cloud.core.diskoffering.js b/ui/scripts/cloud.core.diskoffering.js index 79c121088f0..ebeb6baac38 100644 --- a/ui/scripts/cloud.core.diskoffering.js +++ b/ui/scripts/cloud.core.diskoffering.js @@ -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(); + } + }); } } } \ No newline at end of file diff --git a/ui/scripts/cloud.core.serviceoffering.js b/ui/scripts/cloud.core.serviceoffering.js index 09fd19b4d7d..97206820613 100644 --- a/ui/scripts/cloud.core.serviceoffering.js +++ b/ui/scripts/cloud.core.serviceoffering.js @@ -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(); + } + }); } } } \ No newline at end of file