[SimpleFLE] Logging fix

这个提交包含在:
Andreas 2023-10-27 12:35:07 +02:00
父节点 fe640da777
当前提交 5cb67b0ca9

查看文件

@ -655,26 +655,27 @@ $(".js-save-to-log").click(function () {
var timeString = item[1]; // Example: "123000" var timeString = item[1]; // Example: "123000"
// Formatting time in "12:30:00" // Formatting time in "12:30:00"
var formattedTime = timeString.substring(0, 2) + ":" + timeString.substring(2, 4) + ":" + "00"; var formattedTime = timeString.substring(0, 2) + ":" + timeString.substring(2, 4) + ":" + "00";
var start_date = item[0] + " " + formattedTime; var start_date = item[0] + " " + formattedTime;
var band = item[4]; var band = item[4];
var mode = item[5]; var mode = item[5];
var freq_display = item[3]; var freq_display = item[3];
$.ajax({ qsoList.forEach((item) => {
url: base_url + "index.php/qso/saveqso", var callsign = item[2];
type: "post", var rst_rcvd = item[7];
data: { var rst_sent = item[6];
callsign: callsign, var start_date = item[0];
rst_rcvd: rst_rcvd, var start_time = item[1][0] +item[1][1] + ":" + item[1][2] + item[1][3];
rst_sent: rst_sent, var band = item[4];
start_date: start_date, var mode = item[5];
band: band, var freq_display = item[3];
mode: mode, var station_profile = $(".station_id").val();
freq_display: freq_display,
}, $.ajax({
success: function (debugCreateQSO) { url: base_url + "index.php/qso/saveqso",
console.log("QSO Data:", { type: "post",
data: {
callsign: callsign, callsign: callsign,
rst_rcvd: rst_rcvd, rst_rcvd: rst_rcvd,
rst_sent: rst_sent, rst_sent: rst_sent,
@ -682,11 +683,14 @@ $(".js-save-to-log").click(function () {
band: band, band: band,
mode: mode, mode: mode,
freq_display: freq_display, freq_display: freq_display,
}); start_time: start_time,
} station_profile: station_profile,
},
success: function (result) {},
});
}); });
}); });
clearSession(); clearSession();
BootstrapDialog.alert({ BootstrapDialog.alert({
title: "QSO logged", title: "QSO logged",