From 492b923e247dcbb13929ae962a6a3d4a65bc179b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 8 Nov 2010 17:25:16 -0800 Subject: [PATCH] new UI - template page - delete template - slowly slide up middle menu item and remove the element from DOM. --- ui/scripts/cloud.core.template.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.template.js b/ui/scripts/cloud.core.template.js index a561fe80719..d3a6814e0b3 100644 --- a/ui/scripts/cloud.core.template.js +++ b/ui/scripts/cloud.core.template.js @@ -370,8 +370,10 @@ var templateActionMap = { asyncJobResponse: "deletetemplateresponse", dialogBeforeActionFn : doDeleteTemplate, inProcessText: "Deleting Template....", - afterActionSeccessFn: function(json, $midmenuItem1, id){ - $midmenuItem1.remove(); + afterActionSeccessFn: function(json, $midmenuItem1, id){ + $midmenuItem1.slideUp("slow", function() { + $(this).remove(); + }); clearRightPanel(); templateClearRightPanel(); }