From 8067713bb1c278aee5e35f90b0d67bfae54fe1ba Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 6 Jan 2012 15:51:54 -0800 Subject: [PATCH] cloudstack 3.0 new UI - system - pods page - from actions from listView since they are available in detailView. --- ui/scripts/system.js | 107 +------------------------------------------ 1 file changed, 1 insertion(+), 106 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 01a9e57c2cf..c8ac616da1e 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -4401,112 +4401,7 @@ return 'Added new pod'; } } - }, - - enable: { - label: 'Enable pod', - messages: { - confirm: function(args) { - return 'Are you sure you want to enable this pod?'; - }, - success: function(args) { - return 'This pod is being enabled.'; - }, - notification: function(args) { - return 'Enabling pod'; - }, - complete: function(args) { - return 'Pod has been enabled.'; - } - }, - action: function(args) { - $.ajax({ - url: createURL("updatePod&id=" + args.context.pods[0].id + "&allocationstate=Enabled"), - dataType: "json", - async: true, - success: function(json) { - var item = json.updatepodresponse.pod; - args.response.success({ - actionFilter: podActionfilter, - data:item - }); - } - }); - }, - notification: { - poll: function(args) { - args.complete(); - } - } - }, - - disable: { - label: 'Disable pod', - messages: { - confirm: function(args) { - return 'Are you sure you want to disable this pod?'; - }, - success: function(args) { - return 'This pod is being disabled.'; - }, - notification: function(args) { - return 'Disabling pod'; - }, - complete: function(args) { - return 'Pod has been disabled.'; - } - }, - action: function(args) { - $.ajax({ - url: createURL("updatePod&id=" + args.context.pods[0].id + "&allocationstate=Disabled"), - dataType: "json", - async: true, - success: function(json) { - var item = json.updatepodresponse.pod; - args.response.success({ - actionFilter: podActionfilter, - data:item - }); - } - }); - }, - notification: { - poll: function(args) { - args.complete(); - } - } - }, - - 'delete': { - label: 'Delete' , - messages: { - confirm: function(args) { - return 'Please confirm that you want to delete this pod.'; - }, - success: function(args) { - return 'pod is being deleted.'; - }, - notification: function(args) { - return 'Deleting pod'; - }, - complete: function(args) { - return 'Pod has been deleted.'; - } - }, - action: function(args) { - $.ajax({ - url: createURL("deletePod&id=" + args.context.pods[0].id), - dataType: "json", - async: true, - success: function(json) { - args.response.success({data:{}}); - } - }); - }, - notification: { - poll: function(args) { args.complete(); } - } - } + } }, detailView: {