Skip to content

Commit fd72c12

Browse files
committed
explicit dedication - dedicatePod API call action item integration
1 parent 55d3176 commit fd72c12

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8775,16 +8775,31 @@
87758775
}
87768776
},
87778777
action: function(args) {
8778+
8779+
//EXPLICIT DEDICATION
8780+
var array2 = [];
8781+
if(args.data.accountId != "")
8782+
array2.push("&accountId=" +todb(args.data.accountId));
8783+
87788784
$.ajax({
8779-
url: createURL("dedicatePod&podId=" + args.context.pods[0].id),
8785+
url: createURL("dedicatePod&podId=" + args.context.pods[0].id + "&domainId=" +args.data.domainId + array2.join("")),
87808786
dataType: "json",
87818787
success: function(json) {
8782-
var item = json.dedicatepodresponse.pod;
8783-
args.response.success({
8784-
actionFilter: podActionfilter,
8785-
data:item
8786-
});
8787-
}
8788+
var jid = json.dedicatepodresponse.jobid;
8789+
args.response.success({
8790+
_custom:
8791+
{ jobId: jid
8792+
},
8793+
notification: {
8794+
poll: pollAsyncJobResult
8795+
},
8796+
actionFilter:podActionfilter
8797+
});
8798+
},
8799+
error:function(json){
8800+
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
8801+
8802+
}
87888803
});
87898804
}
87908805

0 commit comments

Comments
 (0)