From 242738b178a55fb0de9faf3ffacd569f7aa30303 Mon Sep 17 00:00:00 2001 From: terribl Date: Sat, 25 May 2013 11:03:30 +0300 Subject: [PATCH] Removed 0000 squawks from table --- public_html/script.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/public_html/script.js b/public_html/script.js index c47a75f..2c612a5 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -2,9 +2,9 @@ if (typeof(developerSettings) === 'undefined') { // If not developers // "Constant" variables - Since there is no constants in make sure // not to change these CONST_ variables. -var CONST_CENTERLAT = 45.0; // 45.0 -var CONST_CENTERLON = 9.0; // 9.0 -var CONST_ZOOMLVL = 5; //5 +var CONST_CENTERLAT = 45.0; +var CONST_CENTERLON = 9.0; +var CONST_ZOOMLVL = 5; } // End of !developerSettings @@ -163,7 +163,11 @@ function refreshTableInfo() { } html += '' + Planes[p].hex + ''; html += '' + Planes[p].flight + ''; - html += '' + Planes[p].squawk + ''; + if (Planes[p].squawk != '0000') { + html += '' + Planes[p].squawk + ''; + } else { + html += ' '; + } html += '' + Planes[p].altitude + ''; html += '' + Planes[p].speed + ''; html += '' + Planes[p].track + '';