mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudStack 3.0 new UI - System - Guest - populate network tabs by API call.
This commit is contained in:
parent
0f5e5df0ac
commit
4570d7d6cd
@ -331,8 +331,7 @@
|
||||
endip: { label: 'End IP' },
|
||||
vlan: { label: 'VLAN' }
|
||||
},
|
||||
actions: {
|
||||
//???
|
||||
actions: {
|
||||
add: {
|
||||
label: 'Create network',
|
||||
|
||||
@ -550,8 +549,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
return args.response.success({data: {}});
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("listNetworks&trafficType=Guest&zoneId=" + selectedZoneObj.id),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var items = json.listnetworksresponse.network;
|
||||
args.response.success({data: items});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user