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 },