Fixing extra lookup when clicking in QSO entry window
这个提交包含在:
父节点
cdd8fc4d7c
当前提交
14c924e612
共有 1 个文件被更改,包括 9 次插入 和 8 次删除
|
|
@ -9,11 +9,11 @@ $( document ).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var bc = new BroadcastChannel('qso_wish');
|
var bc = new BroadcastChannel('qso_wish');
|
||||||
bc.onmessage = function (ev) {
|
bc.onmessage = function (ev) {
|
||||||
if (ev.data.ping) {
|
if (ev.data.ping) {
|
||||||
let message={};
|
let message={};
|
||||||
message.pong=true;
|
message.pong=true;
|
||||||
bc.postMessage(message);
|
bc.postMessage(message);
|
||||||
} else {
|
} else {
|
||||||
$('#frequency').val(ev.data.frequency);
|
$('#frequency').val(ev.data.frequency);
|
||||||
$("#band").val(frequencyToBand(ev.data.frequency));
|
$("#band").val(frequencyToBand(ev.data.frequency));
|
||||||
|
|
@ -23,6 +23,7 @@ $( document ).ready(function() {
|
||||||
}
|
}
|
||||||
$("#callsign").val(ev.data.call);
|
$("#callsign").val(ev.data.call);
|
||||||
$("#callsign").focusout();
|
$("#callsign").focusout();
|
||||||
|
$("#callsign").blur();
|
||||||
}
|
}
|
||||||
} /* receive */
|
} /* receive */
|
||||||
|
|
||||||
|
|
@ -115,7 +116,7 @@ $( document ).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#sota_ref').change(function(){
|
$('#sota_ref').change(function(){
|
||||||
$('#sota_info').html('<a target="_blank" href="https://summits.sota.org.uk/summit/'+$('#sota_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/sota.org.uk.png"></a>');
|
$('#sota_info').html('<a target="_blank" href="https://summits.sota.org.uk/summit/'+$('#sota_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/sota.org.uk.png"></a>');
|
||||||
$('#sota_info').attr('title', 'Lookup '+$('#sota_ref').val()+' summit info on sota.org.uk');
|
$('#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_ref').change(function(){
|
||||||
$('#wwff_info').html('<a target="_blank" href="https://www.cqgma.org/zinfo.php?ref='+$('#wwff_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/wwff.co.png"></a>');
|
$('#wwff_info').html('<a target="_blank" href="https://www.cqgma.org/zinfo.php?ref='+$('#wwff_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/wwff.co.png"></a>');
|
||||||
$('#wwff_info').attr('title', 'Lookup '+$('#wwff_ref').val()+' reference info on cqgma.org');
|
$('#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_ref').change(function(){
|
||||||
$('#pota_info').html('<a target="_blank" href="https://pota.app/#/park/'+$('#pota_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/pota.app.png"></a>');
|
$('#pota_info').html('<a target="_blank" href="https://pota.app/#/park/'+$('#pota_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/pota.app.png"></a>');
|
||||||
$('#pota_info').attr('title', 'Lookup '+$('#pota_ref').val()+' reference info on pota.co');
|
$('#pota_info').attr('title', 'Lookup '+$('#pota_ref').val()+' reference info on pota.co');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -480,7 +481,7 @@ $("#callsign").focusout(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
changebadge(result.dxcc.entity);
|
changebadge(result.dxcc.entity);
|
||||||
|
|
||||||
getDxccResult(result.dxcc.adif, convert_case(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");
|
$('#lotw_info').attr('data-original-title',"LoTW User. Last upload was "+result.lotw_days+" days ago");
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
}
|
}
|
||||||
$('#qrz_info').html('<a target="_blank" href="https://www.qrz.com/db/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/qrz.com.png"></a>');
|
$('#qrz_info').html('<a target="_blank" href="https://www.qrz.com/db/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/qrz.com.png"></a>');
|
||||||
$('#qrz_info').attr('title', 'Lookup '+find_callsign+' info on qrz.com');
|
$('#qrz_info').attr('title', 'Lookup '+find_callsign+' info on qrz.com');
|
||||||
$('#hamqth_info').html('<a target="_blank" href="https://www.hamqth.com/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/hamqth.com.png"></a>');
|
$('#hamqth_info').html('<a target="_blank" href="https://www.hamqth.com/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/hamqth.com.png"></a>');
|
||||||
$('#hamqth_info').attr('title', 'Lookup '+find_callsign+' info on hamqth.com');
|
$('#hamqth_info').attr('title', 'Lookup '+find_callsign+' info on hamqth.com');
|
||||||
|
|
||||||
var $dok_select = $('#darc_dok').selectize();
|
var $dok_select = $('#darc_dok').selectize();
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用