fix some stuff

implement some of the changes in https://github.com/wiedehopf/tar1090/pull/173 by getsnoopy
This commit is contained in:
Matthias Wirth
2022-04-09 07:25:40 +02:00
parent 966dee41f0
commit 9ceecda94a
6 changed files with 25 additions and 28 deletions

View File

@@ -3213,7 +3213,7 @@ function refreshFeatures() {
const cols = planeMan.cols = {};
cols.icao = {
text: 'Hex id',
text: 'Hex ID',
sort: function () { sortBy('icao', compareAlpha, function(x) { return x.icao; }); },
value: function(plane) { return plane.icao; },
td: '<td class="icaoCodeColumn">',
@@ -3318,12 +3318,12 @@ function refreshFeatures() {
value: function(plane) { return (plane.military ? 'yes' : 'no'); },
align: 'right' };
cols.wd = {
text: 'Wind D',
text: 'Wind D.',
sort: function () { sortBy('wd', compareNumeric, function(x) { return plane.wd; }); },
value: function(plane) { return plane.wd != null ? (plane.wd + '°') : ''; },
align: 'right' };
cols.ws = {
text: 'Wind speed',
text: 'Wind S.',
sort: function () { sortBy('ws', compareNumeric, function(x) { return x.ws; }); },
value: function(plane) { return format_speed_brief(plane.ws, DisplayUnits); },
align: 'right',