system page - update embedded object of args.context.physicalNetworks[0] after a physical network is updated.

This commit is contained in:
Jessica Wang 2012-02-22 12:11:05 -08:00
parent f182e1ba47
commit 822889fa4c
1 changed files with 4 additions and 4 deletions

View File

@ -1049,11 +1049,11 @@
$.ajax({
url: createURL('listPhysicalNetworks'),
data: {
zoneid: selectedZoneObj.id
id: args.context.physicalNetworks[0].id
},
async: false,
success: function(json) {
physicalNetworkObjs = json.listphysicalnetworksresponse.physicalnetwork;
success: function(json) {
args.context.physicalNetworks[0] = json.listphysicalnetworksresponse.physicalnetwork[0];
}
});
@ -1080,7 +1080,7 @@
}
});
}
if(guestTrafficTypeTotal > 1) {
if(args.context.physicalNetworks[0].tags != null && args.context.physicalNetworks[0].tags.length > 0) {
array1.push("&tags=" + args.context.physicalNetworks[0].tags);