From 9863287730d0a9dd0148c99591f55354e6321302 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 1 Aug 2013 16:40:30 -0700 Subject: [PATCH] CLOUDSTACK-3753: UI > Infrastructure > zone > physical network > Guest > remove Add VLAN Range action since VLAN Range(s) is editable through Edit action. --- ui/scripts/system.js | 62 -------------------------------------------- 1 file changed, 62 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 6ef832cb5b9..3251f47b3ba 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -1117,68 +1117,6 @@ notification: { poll: pollAsyncJobResult } - }, - - addVlanRange: { - label: 'Add VLAN Range', - title: 'Add VLAN Range', - - messages: { - confirm: function(args) { - return 'Are you sure you want to add another VLAN Range to this guest network?'; - }, - notification: function(args) { - return 'VLAN Range added'; - } - }, - - createForm: { - title: 'Add VLAN Range', - fields: { - startvlan: { - label: 'Vlan Start', - validation: { - required: true - } - }, - endvlan: { - label: 'Vlan End', - validation: { - required: true - } - } - } - - }, - - action: function(args) { - var array1 = []; - if (args.data.startvlan != "" && args.data.endvlan != "") { - var newVlanRange = todb(args.data.startvlan) + "-" + todb(args.data.endvlan); - if(selectedPhysicalNetworkObj.vlan == "") - array1.push("&vlan=" + newVlanRange); - else - array1.push("&vlan=" + selectedPhysicalNetworkObj.vlan + "," + newVlanRange); - } - $.ajax({ - url: createURL("updatePhysicalNetwork&id=" + selectedPhysicalNetworkObj.id + array1.join("")), - dataType: "json", - success: function(json) { - var jobId = json.updatephysicalnetworkresponse.jobid; - args.response.success({ - _custom: { - jobId: jobId - } - }); - }, - error: function(json) { - args.response.error(parseXMLHttpResponse(json)); - } - }); - }, - notification: { - poll: pollAsyncJobResult - } } },