mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
cloudStack 3.0 new UI - basic zone - guest network - create network - add pod dropdown (for basic zone only).
This commit is contained in:
parent
0042749226
commit
db623c8e47
@ -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 },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user