[QSO] When entering a callsign the JS will check that the inputted callsign and searched callsign match

这个提交包含在:
Peter Goodhall 2021-03-31 16:51:32 +01:00
父节点 b87e3fafbd
当前提交 c8b307baf7

查看文件

@ -267,6 +267,10 @@ function reset_fields() {
$("#callsign").focusout(function() {
if ($(this).val().length >= 3) {
// Temp store the callsign
var temp_callsign = $(this).val();
/* Find and populate DXCC */
$('.callsign-suggest').hide();
@ -287,7 +291,10 @@ $("#callsign").focusout(function() {
// Replace / in a callsign with - to stop urls breaking
$.getJSON('logbook/json/' + find_callsign.replace(/\//g, "-") + '/' + sat_type + '/' + json_band + '/' + json_mode, function(result)
{
//$('#country').val(result); lotw_info
console.log ("temp callsign" + temp_callsign);
console.log("entered callsign" + $('#callsign').val());
if($('#callsign').val = temp_callsign){
if(result.dxcc.entity != undefined) {
$('#country').val(convert_case(result.dxcc.entity));
$('#callsign_info').text(convert_case(result.dxcc.entity));
@ -344,7 +351,6 @@ $("#callsign").focusout(function() {
$('#cqz').val(result.dxcc.cqz);
$('#ituz').val(result.dxcc.ituz);
var redIcon = L.icon({
iconUrl: icon_dot_url,
iconSize: [18, 18], // size of the icon
@ -421,6 +427,7 @@ $("#callsign").focusout(function() {
$('#partial_view').show();
/* display past QSOs */
$('#partial_view').html(result.partial);
}
});
} else {
/* Reset fields ... */