cloudstack 3.0 new UI - network page - Associate new IP - pass domainId and account to API call if network type is Shared.

This commit is contained in:
Jessica Wang 2012-01-23 15:02:57 -08:00
parent c125496691
commit 8e82266f6b
1 changed files with 5 additions and 2 deletions

View File

@ -590,9 +590,12 @@
add: {
label: 'Acquire new IP',
addRow: 'true',
action: function(args) {
action: function(args) {
var apiCmd = "associateIpAddress";
if(args.context.networks[0].type == "Shared")
apiCmd += "&domainid=" + g_domainid + "&account=" + g_account;
$.ajax({
url: createURL('associateIpAddress'),
url: createURL(apiCmd),
data: {
networkId: args.context.networks[0].id
},