Don't ask for retry confirmation

master test_1.24.0504-6
Stephen Loomis 2024-05-06 10:03:16 -07:00
rodzic 5405e76126
commit d34514e3b4
2 zmienionych plików z 8 dodań i 31 usunięć

Wyświetl plik

@ -2265,34 +2265,6 @@ function qrzSendLogResult(buffer, flag)
addLastTraffic("<font style='color:red'>Failed log to QRZ.com</font>");
}
function postDialogRetryCallback(
file_url,
callback,
flag,
mode,
port,
theData,
timeoutMs,
timeoutCallback,
who
)
{
if (window.confirm("Error sending QSO to " + who + ", retry?"))
{
getPostBuffer(
file_url,
callback,
flag,
mode,
port,
theData,
timeoutMs,
postDialogRetryCallback,
who
);
}
}
function postRetryErrorCallaback(
file_url,
callback,
@ -2313,7 +2285,7 @@ function postRetryErrorCallaback(
port,
theData,
timeoutMs,
postDialogRetryCallback,
null,
who
);
}
@ -2414,7 +2386,7 @@ function hrdSendLogResult(buffer, flag)
}
else
{
if (buffer.indexOf("Unknown user") == -1)
if (buffer != null && buffer.indexOf("Unknown user") == -1)
{ addLastTraffic("<font style='color:white'>Logged to HRDLOG.net</font>"); }
else
{ addLastTraffic("<font style='color:red'>Fail log to HRDLOG.net</font>"); }

Wyświetl plik

@ -11371,7 +11371,7 @@ function getPostBuffer(
if (typeof callback == "function")
{
// Call it, since we have confirmed it is callable
callback(fileBuffer, flag, cookies);
callback(fileBuffer, flag);
}
})
.on("error", function ()
@ -11408,6 +11408,11 @@ function getPostBuffer(
who
);
}
else if (typeof callback == "function")
{
// Call it, since we have confirmed it is callable
callback(null, null);
}
});
}
req.write(postData);