From ce09bf6b7ca8546be3fa3d3c6f0b6644338f1024 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 9 Oct 2023 13:37:25 +0200 Subject: [PATCH] Keep unmodified c allsign for LoTW/qrz/hamqth lookups --- assets/js/sections/qso.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index 0bf2e5ad..4ba6c1fd 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -504,6 +504,7 @@ $("#callsign").focusout(function() { } var find_callsign = $(this).val().toUpperCase(); + var callsign = find_callsign; find_callsign=find_callsign.replace(/\//g, "-"); find_callsign=find_callsign.replace('Ø', '0'); @@ -522,9 +523,6 @@ $("#callsign").focusout(function() { $('#country').val(convert_case(result.dxcc.entity)); $('#callsign_info').text(convert_case(result.dxcc.entity)); - var callsign = find_callsign.replace(/\//g, "-"); - callsign = callsign.replace('Ø', '0'); - if($("#sat_name" ).val() != "") { //logbook/jsonlookupgrid/io77/SAT/0/0 $.getJSON(base_url + 'index.php/logbook/jsonlookupcallsign/' + find_callsign + '/SAT/0/0', function(result) @@ -586,16 +584,16 @@ $("#callsign").focusout(function() { } else if (result.lotw_days > 7) { $('#lotw_info').addClass('lotw_info_yellow'); } - $('#lotw_link').attr('href',"https://lotw.arrl.org/lotwuser/act?act="+find_callsign); + $('#lotw_link').attr('href',"https://lotw.arrl.org/lotwuser/act?act="+callsign); $('#lotw_link').attr('target',"_blank"); $('#lotw_info').attr('data-toggle',"tooltip"); $('#lotw_info').attr('data-original-title',"LoTW User. Last upload was "+result.lotw_days+" days ago"); $('[data-toggle="tooltip"]').tooltip(); } - $('#qrz_info').html(''); - $('#qrz_info').attr('title', 'Lookup '+find_callsign+' info on qrz.com'); - $('#hamqth_info').html(''); - $('#hamqth_info').attr('title', 'Lookup '+find_callsign+' info on hamqth.com'); + $('#qrz_info').html(''); + $('#qrz_info').attr('title', 'Lookup '+callsign+' info on qrz.com'); + $('#hamqth_info').html(''); + $('#hamqth_info').attr('title', 'Lookup '+callsign+' info on hamqth.com'); var $dok_select = $('#darc_dok').selectize(); var dok_selectize = $dok_select[0].selectize;