fix error message

This commit is contained in:
HB9HIL
2024-08-20 20:39:55 +02:00
parent 77e97308b3
commit 711c032199
3 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,6 @@ class Qrbcalc extends CI_Controller {
$data['latlng2'] = $latlng2; $data['latlng2'] = $latlng2;
$data['latlong_info_text'] = __("Negative latitudes are south of the equator, negative longitudes are west of Greenwich."); $data['latlong_info_text'] = __("Negative latitudes are south of the equator, negative longitudes are west of Greenwich.");
$data['error_msg'] = __("Error in locators. Please check.");
header('Content-Type: application/json'); header('Content-Type: application/json');
echo json_encode($data); echo json_encode($data);

View File

@@ -46,6 +46,7 @@
var lang_lotw_propmode_hint = "<?= __("Propagation mode is not supported by LoTW. LoTW QSL fields disabled."); ?>"; var lang_lotw_propmode_hint = "<?= __("Propagation mode is not supported by LoTW. LoTW QSL fields disabled."); ?>";
var lang_no_states_for_dxcc_available = "<?= __("No states for this DXCC available"); ?>"; var lang_no_states_for_dxcc_available = "<?= __("No states for this DXCC available"); ?>";
var lang_qrbcalc_title = '<?= __("Compute QRB and QTF"); ?>'; var lang_qrbcalc_title = '<?= __("Compute QRB and QTF"); ?>';
var lang_qrbcalc_errmsg = '<?= __("Error in locators. Please check."); ?>';
</script> </script>

View File

@@ -677,7 +677,7 @@ function calculateQrb() {
} }
}); });
} else { } else {
$('.qrbResult').html('<div class="qrbalert alert alert-danger" role="alert">' + html['error_msg'] + '</div>'); $('.qrbResult').html('<div class="qrbalert alert alert-danger" role="alert">' + lang_qrbcalc_errmsg + '</div>');
} }
} }