From 14c924e612d7d09b4d029b86dced7cedfc6fd1a2 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Thu, 27 Jul 2023 19:57:43 +0200 Subject: [PATCH] Fixing extra lookup when clicking in QSO entry window --- assets/js/sections/qso.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index 9f1efcb0..48d90ffe 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -9,11 +9,11 @@ $( document ).ready(function() { } var bc = new BroadcastChannel('qso_wish'); - bc.onmessage = function (ev) { + bc.onmessage = function (ev) { if (ev.data.ping) { let message={}; message.pong=true; - bc.postMessage(message); + bc.postMessage(message); } else { $('#frequency').val(ev.data.frequency); $("#band").val(frequencyToBand(ev.data.frequency)); @@ -23,6 +23,7 @@ $( document ).ready(function() { } $("#callsign").val(ev.data.call); $("#callsign").focusout(); + $("#callsign").blur(); } } /* receive */ @@ -115,7 +116,7 @@ $( document ).ready(function() { }); $('#sota_ref').change(function(){ - $('#sota_info').html(''); + $('#sota_info').html(''); $('#sota_info').attr('title', 'Lookup '+$('#sota_ref').val()+' summit info on sota.org.uk'); }); @@ -148,7 +149,7 @@ $( document ).ready(function() { }); $('#wwff_ref').change(function(){ - $('#wwff_info').html(''); + $('#wwff_info').html(''); $('#wwff_info').attr('title', 'Lookup '+$('#wwff_ref').val()+' reference info on cqgma.org'); }); @@ -181,7 +182,7 @@ $( document ).ready(function() { }); $('#pota_ref').change(function(){ - $('#pota_info').html(''); + $('#pota_info').html(''); $('#pota_info').attr('title', 'Lookup '+$('#pota_ref').val()+' reference info on pota.co'); }); @@ -480,7 +481,7 @@ $("#callsign").focusout(function() { } changebadge(result.dxcc.entity); - + getDxccResult(result.dxcc.adif, convert_case(result.dxcc.entity)); } @@ -498,9 +499,9 @@ $("#callsign").focusout(function() { $('#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').html(''); $('#qrz_info').attr('title', 'Lookup '+find_callsign+' info on qrz.com'); - $('#hamqth_info').html(''); + $('#hamqth_info').html(''); $('#hamqth_info').attr('title', 'Lookup '+find_callsign+' info on hamqth.com'); var $dok_select = $('#darc_dok').selectize();