[hamradio-commits] [dump1090] 219/373: Removed 0000 squawks from table

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit 242738b178a55fb0de9faf3ffacd569f7aa30303
Author: terribl <terri at rannalla.net>
Date:   Sat May 25 11:03:30 2013 +0300

    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 += '<td class="' + specialStyle + '">' + Planes[p].hex + '</td>';
 		html += '<td class="' + specialStyle + '">' + Planes[p].flight + '</td>';
-		html += '<td class="' + specialStyle + '" align="right">' + Planes[p].squawk + '</td>';
+		if (Planes[p].squawk != '0000') {
+    		html += '<td class="' + specialStyle + '" align="right">' + Planes[p].squawk + '</td>';
+        } else {
+            html += '<td class="' + specialStyle + '" align="right"> </td>';
+        }
 		html += '<td class="' + specialStyle + '" align="right">' + Planes[p].altitude + '</td>';
 		html += '<td class="' + specialStyle + '" align="right">' + Planes[p].speed + '</td>';
 		html += '<td class="' + specialStyle + '" align="right">' + Planes[p].track + '</td>';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list