Fixed issue where if DXCC wasn't defined during json callsign call it would cause lookup to fail
这个提交包含在:
父节点
fac032d506
当前提交
eafae062e5
共有 1 个文件被更改,包括 5 次插入 和 2 次删除
|
|
@ -245,12 +245,15 @@ $(document).ready(function(){
|
||||||
$.getJSON('logbook/json/' + $(this).val(), function(result)
|
$.getJSON('logbook/json/' + $(this).val(), function(result)
|
||||||
{
|
{
|
||||||
//$('#country').val(result); lotw_info
|
//$('#country').val(result); lotw_info
|
||||||
|
if(result.dxcc.entity != undefined) {
|
||||||
$('#country').val(convert_case(result.dxcc.entity));
|
$('#country').val(convert_case(result.dxcc.entity));
|
||||||
$('#callsign_info').text(convert_case(result.dxcc.entity));
|
$('#callsign_info').text(convert_case(result.dxcc.entity));
|
||||||
|
}
|
||||||
|
|
||||||
if(result.lotw_member == "active") {
|
if(result.lotw_member == "active") {
|
||||||
$('#lotw_info').text("LoTW");
|
$('#lotw_info').text("LoTW");
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#dxcc_id').val(result.dxcc.adif);
|
$('#dxcc_id').val(result.dxcc.adif);
|
||||||
$('#cqz').val(result.dxcc.cqz);
|
$('#cqz').val(result.dxcc.cqz);
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用