warning if some qso have no band/mode

pull/2624/head
HB9HIL 2023-10-27 19:32:21 +02:00
rodzic ed0b1fc730
commit 0bcb76fdc6
1 zmienionych plików z 13 dodań i 6 usunięć

Wyświetl plik

@ -622,7 +622,19 @@ $(".js-save-to-log").click(function () {
setTimeout(function() {
$('#textarea').css('border', '');
}, 2000);
}else {
}
if (false === isBandModeEntered()) {
BootstrapDialog.alert({
title: "WARNING",
message: "Warning! You can't log the QSO list because some QSO do not have band and/or mode defined!?",
type: BootstrapDialog.TYPE_DANGER,
btnCancelLabel: "Cancel",
btnOKLabel: "OK!",
btnOKClass: "btn-warning",
});
return false;
}
else {
handleInput();
BootstrapDialog.confirm({
title: "ATTENTION",
@ -634,11 +646,6 @@ $(".js-save-to-log").click(function () {
btnOKClass: "btn-info",
callback: function (result) {
if (result) {
if (false === isBandModeEntered()) {
alert("Some QSO do not have band and/or mode defined!");
return false;
}
var operator = $("#operator").val();
operator = operator.toUpperCase();
var ownCallsign = $("#station-call").val().toUpperCase();