diff --git a/ui/scripts/system.js b/ui/scripts/system.js index f76b534d210..f85e20f229d 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -8571,13 +8571,15 @@ var endip = args.data.reservedSystemEndIp; //optional if (endip != null && endip.length > 0) array1.push("&endIp=" + todb(endip)); - + var podId = null; $.ajax({ url: createURL("createPod" + array1.join("")), data: appendData, dataType: "json", success: function(json) { var item = json.createpodresponse.pod; + podId = json.createpodresponse.pod.id; + /* args.response.success({ data:item }); @@ -8599,8 +8601,17 @@ url:createURL("dedicatePod&podId=" +podId +"&domainId=" +args.data.domainId + array2.join("")), dataType:"json", success:function(json){ - var dedicatedObj = json.dedicatepodresponse.pod; - args.response.success({ data: $.extend(item, dedicatedObj)}); + var jid = json.dedicatepodresponse.jobid; + args.response.success({ + _custom: + { jobId: jid + }, + notification: { + poll: pollAsyncJobResult + }, + + data:item + }); }, @@ -9454,12 +9465,12 @@ array2.push("&accountId=" +todb(args.data.accountId)); } - if(hostId != null){ + if(clusterId != null){ $.ajax({ url:createURL("dedicateCluster&clusterId=" +clusterId +"&domainId=" +args.data.domainId + array2.join("")), dataType:"json", success:function(json){ - var dedicatedObj = json.dedicateclusterresponse.cluster; + var jid = json.dedicateclusterresponse.jobid; args.response.success({ data: $.extend(item, dedicatedObj , {state:'Enabled'}) }); }, diff --git a/ui/scripts/zoneWizard.js b/ui/scripts/zoneWizard.js index 917f9ca5f04..5a8bcfdaae8 100755 --- a/ui/scripts/zoneWizard.js +++ b/ui/scripts/zoneWizard.js @@ -1604,7 +1604,7 @@ if(args.data.zone.networkdomain != null && args.data.zone.networkdomain.length > 0) array1.push("&domain=" + todb(args.data.zone.networkdomain)); - var dedicatedZoneid = null; + var dedicatedZoneId = null; $.ajax({ url: createURL("createZone" + array1.join("")), @@ -1626,10 +1626,10 @@ if(dedicatedZoneId != null){ $.ajax({ - url:createURL("dedicateZone&ZoneId=" +ZoneId +"&domain=" +args.data.zone.domain + array2.join("")), + url:createURL("dedicateZone&ZoneId=" +dedicatedZoneId +"&domain=" +args.data.zone.domain + array2.join("")), dataType:"json", success:function(json){ - var dedicatedObj = json.dedicatezoneresponse.zone; + var dedicatedObj = json.dedicatezoneresponse.jobid; //args.response.success({ data: $.extend(item, dedicatedObj)}); },