Comments and spacing
This commit is contained in:
parent
c466a4724f
commit
cd6d3a373b
|
|
@ -411,6 +411,7 @@ function initialize() {
|
||||||
mapResizeTimeout = setTimeout(updateMapSize, 10);
|
mapResizeTimeout = setTimeout(updateMapSize, 10);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Initialize settings from local storage
|
||||||
filterGroundVehicles(false);
|
filterGroundVehicles(false);
|
||||||
filterBlockedMLAT(false);
|
filterBlockedMLAT(false);
|
||||||
toggleAltitudeChart(false);
|
toggleAltitudeChart(false);
|
||||||
|
|
@ -1152,7 +1153,6 @@ function refreshSelected() {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
$("#selected_altitude").text(format_altitude_long(selected.altitude, selected.vert_rate, DisplayUnits));
|
$("#selected_altitude").text(format_altitude_long(selected.altitude, selected.vert_rate, DisplayUnits));
|
||||||
|
|
||||||
$('#selected_onground').text(format_onground(selected.altitude));
|
$('#selected_onground').text(format_onground(selected.altitude));
|
||||||
|
|
||||||
if (selected.squawk === null || selected.squawk === '0000') {
|
if (selected.squawk === null || selected.squawk === '0000') {
|
||||||
|
|
@ -1205,6 +1205,7 @@ function refreshSelected() {
|
||||||
$('#selected_follow').css('font-weight', 'normal');
|
$('#selected_follow').css('font-weight', 'normal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selected.getDataSource() === "adsb_icao") {
|
if (selected.getDataSource() === "adsb_icao") {
|
||||||
$('#selected_source').text("ADS-B");
|
$('#selected_source').text("ADS-B");
|
||||||
} else if (selected.getDataSource() === "tisb_trackfile" || selected.getDataSource() === "tisb_icao" || selected.getDataSource() === "tisb_other") {
|
} else if (selected.getDataSource() === "tisb_trackfile" || selected.getDataSource() === "tisb_icao" || selected.getDataSource() === "tisb_other") {
|
||||||
|
|
@ -1214,12 +1215,12 @@ function refreshSelected() {
|
||||||
} else {
|
} else {
|
||||||
$('#selected_source').text("Other");
|
$('#selected_source').text("Other");
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#selected_category').text(selected.category ? selected.category : "n/a");
|
$('#selected_category').text(selected.category ? selected.category : "n/a");
|
||||||
$('#selected_sitedist').text(format_distance_long(selected.sitedist, DisplayUnits));
|
$('#selected_sitedist').text(format_distance_long(selected.sitedist, DisplayUnits));
|
||||||
$('#selected_rssi').text(selected.rssi.toFixed(1) + ' dBFS');
|
$('#selected_rssi').text(selected.rssi.toFixed(1) + ' dBFS');
|
||||||
$('#selected_message_count').text(selected.messages);
|
$('#selected_message_count').text(selected.messages);
|
||||||
$('#selected_photo_link').html(getFlightAwarePhotoLink(selected.registration));
|
$('#selected_photo_link').html(getFlightAwarePhotoLink(selected.registration));
|
||||||
|
|
||||||
$('#selected_altitude_geom').text(format_altitude_long(selected.alt_geom, selected.geom_rate, DisplayUnits));
|
$('#selected_altitude_geom').text(format_altitude_long(selected.alt_geom, selected.geom_rate, DisplayUnits));
|
||||||
$('#selected_mag_heading').text(format_track_long(selected.mag_heading));
|
$('#selected_mag_heading').text(format_track_long(selected.mag_heading));
|
||||||
$('#selected_true_heading').text(format_track_long(selected.true_heading));
|
$('#selected_true_heading').text(format_track_long(selected.true_heading));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue