diff --git a/public_html/formatter.js b/public_html/formatter.js
index 5c52285..39fe041 100644
--- a/public_html/formatter.js
+++ b/public_html/formatter.js
@@ -183,5 +183,13 @@ function format_data_source(source) {
return "Mode A/C";
}
+ return "";
+}
+
+function format_ident(ident) {
+ if (ident !== null && ident !== "") {
+ return "" + ident + "";
+ }
+
return "";
}
\ No newline at end of file
diff --git a/public_html/script.js b/public_html/script.js
index 1e58bb1..ed453ea 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -91,11 +91,22 @@ function processReceiverUpdate(data) {
}
plane.tr.addEventListener('click', function(h, evt) {
+ if (evt.srcElement instanceof HTMLAnchorElement) {
+ evt.stopPropagation();
+ return;
+ }
+
+ if (!$("#map_container").is(":visible")) {
+ showMap();
+ }
selectPlaneByHex(h, false);
evt.preventDefault();
}.bind(undefined, hex));
plane.tr.addEventListener('dblclick', function(h, evt) {
+ if (!$("#map_container").is(":visible")) {
+ showMap();
+ }
selectPlaneByHex(h, true);
evt.preventDefault();
}.bind(undefined, hex));
@@ -215,7 +226,7 @@ function initialize() {
var mapResizeTimeout;
$("#sidebar_container").on("resize", function() {
clearTimeout(mapResizeTimeout);
- mapResizeTimeout = setTimeout(updateMapSize, 50);
+ mapResizeTimeout = setTimeout(updateMapSize, 10);
});
// Get receiver metadata, reconfigure using it, then continue
@@ -789,7 +800,7 @@ function refreshTableInfo() {
}
// ICAO doesn't change
- tableplane.tr.cells[2].textContent = (tableplane.flight !== null ? tableplane.flight : "");
+ tableplane.tr.cells[2].innerHTML = format_ident(tableplane.flight);
tableplane.tr.cells[3].textContent = (tableplane.registration !== null ? tableplane.registration : "");
tableplane.tr.cells[4].textContent = (tableplane.icaotype !== null ? tableplane.icaotype : "");
tableplane.tr.cells[5].textContent = (tableplane.squawk !== null ? tableplane.squawk : "");