Fixed issue where if DXCC wasn't defined during json callsign call it would cause lookup to fail

这个提交包含在:
Peter Goodhall 2019-08-13 16:11:12 +01:00
父节点 fac032d506
当前提交 eafae062e5

查看文件

@ -245,12 +245,15 @@ $(document).ready(function(){
$.getJSON('logbook/json/' + $(this).val(), function(result)
{
//$('#country').val(result); lotw_info
$('#country').val(convert_case(result.dxcc.entity));
$('#callsign_info').text(convert_case(result.dxcc.entity));
if(result.dxcc.entity != undefined) {
$('#country').val(convert_case(result.dxcc.entity));
$('#callsign_info').text(convert_case(result.dxcc.entity));
}
if(result.lotw_member == "active") {
$('#lotw_info').text("LoTW");
}
$('#dxcc_id').val(result.dxcc.adif);
$('#cqz').val(result.dxcc.cqz);