From db623c8e475396640435ffbf70821cb386feb1b5 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 28 Nov 2011 14:13:25 -0800 Subject: [PATCH] cloudStack 3.0 new UI - basic zone - guest network - create network - add pod dropdown (for basic zone only). --- ui/scripts/system.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 3314b4b813c..a5e48ae313a 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -494,6 +494,29 @@ args.response.success({data: array1}); } }, + + podId: { + label: 'Pod', + validation: { required: true }, + select: function(args) { + var items = []; + if(selectedZoneObj.networktype == "Basic") { + $.ajax({ + url: createURL("listPods&zoneid=" + selectedZoneObj.id), + dataType: "json", + async: false, + success: function(json) { + var podObjs = json.listpodsresponse.pod; + $(podObjs).each(function(){ + items.push({id: this.id, description: this.name}); + }); + } + }); + } + args.response.success({data: items}); + } + }, + domainId: { label: 'Domain', validation: { required: true },