From 85c754d73427803898436cdae21b2018bbbbb18d Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 4 Jun 2012 19:05:20 -0700 Subject: [PATCH] CS-13091: Remove enable/disable physical network actions. Due to limitations in the API, for now the enable/disable functionality for physical networks will be removed. --- ui/scripts/system.js | 76 +------------------------------------------- 1 file changed, 1 insertion(+), 75 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index b6fc9d80e44..37868deaf6f 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -1822,81 +1822,7 @@ notification: { poll: pollAsyncJobResult } - }, - enable: { - label: 'label.action.enable.physical.network', - messages: { - confirm: function(args) { - return 'message.action.enable.physical.network'; - }, - notification: function(args) { - return 'label.action.enable.physical.network'; - } - }, - action: function(args) { - $.ajax({ - url: createURL('updatePhysicalNetwork'), - data: { - id: args.context.physicalNetworks[0].id, - state: 'Enabled' - }, - success: function(json) { - args.response.success({ - _custom: { - jobId: json.updatephysicalnetworkresponse.jobid, - getUpdatedItem: function(json) { - return { - state: 'Enabled' - }; - }, - getActionFilter: function() { - return cloudStack.actionFilter.physicalNetwork; - } - } - }); - }, - error: function(json) { args.response.error(parseXMLHttpResponse(json)); } - }); - }, - notification: { poll: pollAsyncJobResult } - }, - disable: { - label: 'label.action.disable.physical.network', - messages: { - confirm: function(args) { - return 'message.action.disable.physical.network'; - }, - notification: function(args) { - return 'label.action.disable.physical.network'; - } - }, - action: function(args) { - $.ajax({ - url: createURL('updatePhysicalNetwork'), - data: { - id: args.context.physicalNetworks[0].id, - state: 'Disabled' - }, - success: function(json) { - args.response.success({ - _custom: { - jobId: json.updatephysicalnetworkresponse.jobid, - getUpdatedItem: function(json) { - return { - state: 'Disabled' - }; - }, - getActionFilter: function() { - return cloudStack.actionFilter.physicalNetwork; - } - } - }); - }, - error: function(json) { args.response.error(parseXMLHttpResponse(json)); } - }); - }, - notification: { poll: pollAsyncJobResult } - } + } } }, dataProvider: function(args) {