From 89cdb61065eea6806a66c12004610305b04ccec4 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 8 Nov 2010 15:12:34 -0800 Subject: [PATCH] new UI - Snapshot page - delete snapshot - slowly slide up middle menu item and remove the element from DOM. --- ui/scripts/cloud.core.snapshot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.snapshot.js b/ui/scripts/cloud.core.snapshot.js index 7a963b8fa11..d26b5a21b72 100644 --- a/ui/scripts/cloud.core.snapshot.js +++ b/ui/scripts/cloud.core.snapshot.js @@ -127,8 +127,10 @@ var snapshotActionMap = { asyncJobResponse: "deletesnapshotresponse", dialogBeforeActionFn : doSnapshotDelete, inProcessText: "Deleting snapshot....", - afterActionSeccessFn: function(json, $midmenuItem1, id){ - $midmenuItem1.remove(); + afterActionSeccessFn: function(json, $midmenuItem1, id){ + $midmenuItem1.slideUp("slow", function() { + $(this).remove(); + }); clearRightPanel(); snapshotClearRightPanel(); }