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

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