cloudStack 3.0 new UI - basic zone - guest network - create network - add pod dropdown (for basic zone only).

This commit is contained in:
Jessica Wang 2011-11-28 14:13:25 -08:00
parent 0042749226
commit db623c8e47

View File

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