Show rows with non-ICAO addresses in italic.

This commit is contained in:
Oliver Jowett 2015-01-22 13:21:47 +00:00
parent af3eb3df2b
commit 7500cabb08

View file

@ -71,7 +71,14 @@ function processReceiverUpdate(data) {
} else {
plane = new PlaneObject(hex);
plane.tr = PlaneRowTemplate.cloneNode(true);
plane.tr.cells[0].textContent = hex; // this won't change
if (hex[0] === '~') {
// Non-ICAO address
plane.tr.cells[0].textContent = hex.substring(1);
plane.tr.css('font-style', 'italic');
} else {
plane.tr.cells[0].textContent = hex;
}
plane.tr.addEventListener('click', selectPlaneByHex.bind(undefined,hex));
Planes[hex] = plane;