cloudstack 3.0 UI - VPC - IP Addresses - not pass vpcid to API call if it's undefined.

This commit is contained in:
Jessica Wang 2012-07-12 11:41:22 -07:00
parent 970bdb3972
commit 4d5db13555
1 changed files with 5 additions and 2 deletions

View File

@ -1083,8 +1083,11 @@
}
}
if("vpc" in args.context)
array1.push("&vpcid=" + args.context.vpc[0].id);
if("vpc" in args.context) {
$.extend(data, {
vpcid: args.context.vpc[0].id
});
}
$.ajax({
url: createURL("listPublicIpAddresses&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),