cloudStack 3.0 new UI - System - Guest - populate network tabs by API call.

This commit is contained in:
Jessica Wang 2011-11-15 16:40:01 -08:00
parent 0f5e5df0ac
commit 4570d7d6cd

View File

@ -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});
}
});
}
}
}