From f8f751266545aa317eab2377ab6b9aee24f910ac Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 5 Oct 2010 17:19:30 -0700 Subject: [PATCH] new UI - volume page - recurring snapshot --- ui/new/scripts/cloud.core2.js | 7 ------- ui/new/scripts/cloud.core2.volume.js | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/ui/new/scripts/cloud.core2.js b/ui/new/scripts/cloud.core2.js index 1ae5fdf385d..eeccbaae93c 100644 --- a/ui/new/scripts/cloud.core2.js +++ b/ui/new/scripts/cloud.core2.js @@ -34,7 +34,6 @@ function buildActionLinkForDetailsTab(label, actionMap, $actionMenu, listAPIMap) $link.data("asyncJobResponse", apiInfo.asyncJobResponse); $link.data("afterActionSeccessFn", apiInfo.afterActionSeccessFn); $link.data("dialogBeforeActionFn", apiInfo.dialogBeforeActionFn); - $link.data("customActionFn", apiInfo.customActionFn); var $detailsTab = $("#right_panel_content #tab_content_details"); var id = $detailsTab.data("jsonObj").id; @@ -43,12 +42,6 @@ function buildActionLinkForDetailsTab(label, actionMap, $actionMenu, listAPIMap) $actionMenu.hide(); var $actionLink = $(this); - var customActionFn = $actionLink.data("customActionFn"); - if(customActionFn != null) { - customActionFn(); - return false; - } - var dialogBeforeActionFn = $actionLink.data("dialogBeforeActionFn"); if(dialogBeforeActionFn == null) { var apiCommand = "command="+$actionLink.data("api")+"&id="+id; diff --git a/ui/new/scripts/cloud.core2.volume.js b/ui/new/scripts/cloud.core2.volume.js index b2e71d92ac2..b09d60b1c82 100644 --- a/ui/new/scripts/cloud.core2.volume.js +++ b/ui/new/scripts/cloud.core2.volume.js @@ -549,7 +549,7 @@ var volumeActionMap = { afterActionSeccessFn: function(){} }, "Recurring Snapshot": { - customActionFn : doRecurringSnapshot + dialogBeforeActionFn : doRecurringSnapshot } }