in WebPortal/Scripts/meeting.js [285:354]
$("#btnAddFeedback").click(function () {
var oListItem;
var currentUser;
var audioIssues = false;
var videoIssues = false;
var comments = '';
var audioIssueList = '';
var videoIssueList = '';
$('input[class=audio]').each(function () {
if (this.checked) {
audioIssues = true;
if (audioIssueList == '') {
audioIssueList = this.value;
}
else {
audioIssueList = audioIssueList + ',' + this.value;
}
}
});
if (audioIssueList == '') {
audioIssueList = 'None';
}
$('input[class=video]').each(function () {
if (this.checked) {
videoIssues = true;
if (videoIssueList == '') {
videoIssueList = this.value;
}
else {
videoIssueList = videoIssueList + ',' + this.value;
}
}
});
if (videoIssueList == '') {
videoIssueList = 'None';
}
comments = $('#comments').val();
var browser = getBrowser();
var body = {
meetingId: config.meetingId,
callRating: callRating,
audioIssues: audioIssues,
audioIssueList: audioIssueList,
videoIssues: videoIssues,
videoIssueList: videoIssueList,
comments: comments,
browser: browser
}
var url = config.WebPortalBaseUrl + '/Relay/CallQualitySurvey'
var promise = $.ajax({
url: url,
type: 'POST',
contentType: "application/json; charset=utf-8",
data: JSON.stringify(body),
});
promise.then(function (data) {
console.log("Call quality survey.");
}).catch(function (err) {
console.log("Failed to call quality survey", err);
});
$("#divPopBox").hide();
});