separate type description / type code in description

This commit is contained in:
Matthias Wirth
2020-05-23 00:25:02 +02:00
parent 31e323c141
commit 1ba1d1154f
2 changed files with 16 additions and 4 deletions

View File

@@ -1787,10 +1787,14 @@ function refreshSelected() {
}
if (selected.icaoType) {
$('#selected_icaotype').text(selected.typeDescription + ' - ' + selected.icaoType);
$('#selected_icaotype').text(selected.icaoType);
} else {
$('#selected_icaotype').text("n/a");
}
if (selected.typeDescription)
$('#selected_typedesc').text(selected.typeDescription);
else
$('#selected_typedesc').text("n/a");
if (showPictures && selected.icaoType){
let new_html = "<img width='150px' src='aircraft_sil/" + selected.icaoType + ".png' />";