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();