display PIA / LADD

This commit is contained in:
Matthias Wirth
2021-03-16 22:15:15 +01:00
parent 16e4a90875
commit c0c43cd734
2 changed files with 11 additions and 2 deletions

View File

@@ -2225,14 +2225,19 @@ function refreshSelected() {
$('#anon_mlat_info').addClass('hidden');
$('#reg_info').removeClass('hidden');
}
if (selected.registration != selReg) {
selReg = selected.registration
let checkReg = selected.registration + ' ' + selected.regLoaded;
if (checkReg != selReg) {
selReg = checkReg;
if (selected.registration) {
if (flightawareLinks) {
$('#selected_registration').html(getFlightAwareIdentLink(selected.registration, selected.registration));
} else if (selected.ladd) {
$('#selected_registration').html(selected.registration + ' (<a style="color: blue" target="_blank" href="https://ladd.faa.gov/" rel="noreferrer">LADD</a>)');
} else {
$('#selected_registration').text(selected.registration);
}
} else if (selected.pia) {
$('#selected_registration').html('n/a (<a style="color: blue" target="_blank" href="https://www.faa.gov/nextgen/equipadsb/privacy/" rel="noreferrer">PIA</a>)');
} else {
$('#selected_registration').text("n/a");
}