INNER CODE UNIT · JavaScript
saveChaosReport
lucky-sideburn/kubeinvaders · html/js/chaos_report.js:311
function saveChaosReport() {
// console.log("[SAVE-CHAOS-REPORT-CONF] Going to save Chaos Report program");
if ($("#chaosReportCheckSiteURLMethod").val() == "POST") {
// console.log("[SAVE-CHAOS-REPORT-CONF] Check url is POST, reading content of uploaded file and sending saved Chaos Report");
readContentOfUploadedFile();
} else {
// console.log("[SAVE-CHAOS-REPORT-CONF] Check url is GET, sending saved Chaos Report");
sendSavedChaosReport();
}
}
function updateElapsedTimeArray(projectName) {
if (!projectName || projectName.trim() === "") {
return;
}
$("#chaosReportSessionTimeDiv").html(diffBetweenTwoDates(chaos_report_start_date, new Date()) + " seconds");
// console.log("[SAVE-CHAOS-REPORT-CONF] Diff Between Dates: " + toString(diffBetweenTwoDates(chaos_report_start_date, new Date())));