explicit dedication - dedicatePod API call action item integration

This commit is contained in:
Pranav Saxena 2013-05-28 15:52:53 +05:30
parent 55d3176332
commit fd72c12967
1 changed files with 22 additions and 7 deletions

View File

@ -8775,16 +8775,31 @@
}
},
action: function(args) {
//EXPLICIT DEDICATION
var array2 = [];
if(args.data.accountId != "")
array2.push("&accountId=" +todb(args.data.accountId));
$.ajax({
url: createURL("dedicatePod&podId=" + args.context.pods[0].id),
url: createURL("dedicatePod&podId=" + args.context.pods[0].id + "&domainId=" +args.data.domainId + array2.join("")),
dataType: "json",
success: function(json) {
var item = json.dedicatepodresponse.pod;
args.response.success({
actionFilter: podActionfilter,
data:item
});
}
var jid = json.dedicatepodresponse.jobid;
args.response.success({
_custom:
{ jobId: jid
},
notification: {
poll: pollAsyncJobResult
},
actionFilter:podActionfilter
});
},
error:function(json){
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
}
});
}