mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
cloudStack 3.0 new UI - System - Guest - populate network tabs by API call.
This commit is contained in:
parent
0f5e5df0ac
commit
4570d7d6cd
@ -332,7 +332,6 @@
|
||||
vlan: { label: 'VLAN' }
|
||||
},
|
||||
actions: {
|
||||
//???
|
||||
add: {
|
||||
label: 'Create network',
|
||||
|
||||
@ -551,7 +550,14 @@
|
||||
}
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
return args.response.success({data: {}});
|
||||
$.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