diff --git a/public_html/gmap.html b/public_html/gmap.html
index 61562a9..ffc707a 100644
--- a/public_html/gmap.html
+++ b/public_html/gmap.html
@@ -49,7 +49,22 @@
-
+
+
+
+ | ICAO |
+ Flight |
+ Squawk |
+ Altitude |
+ Speed |
+ Track |
+ Msgs |
+ Seen |
+
+
+
+
+
diff --git a/public_html/script.js b/public_html/script.js
index 265e30f..c9dba03 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -403,22 +403,7 @@ function normalizeTrack(track, valid){
// Refeshes the larger table of all the planes
function refreshTableInfo() {
- var html = '';
- html += '';
- html += '| ICAO | ';
- html += 'Flight | ';
- html += 'Squawk | ';
- html += 'Altitude | ';
- html += 'Speed | ';
- html += 'Track | ';
- html += 'Msgs | ';
- html += 'Seen | ';
+ var html = '';
for (var tablep in Planes) {
var tableplane = Planes[tablep]
if (!tableplane.reapable) {
@@ -441,9 +426,9 @@ function refreshTableInfo() {
}
if (tableplane.vPosition == true) {
- html += '';
+ html += '
';
} else {
- html += '
';
+ html += '
';
}
html += '| ' + tableplane.icao + ' | ';
@@ -475,9 +460,8 @@ function refreshTableInfo() {
html += '
';
}
}
- html += '
';
- document.getElementById('planes_table').innerHTML = html;
+ document.getElementById('dataTable').innerHTML = html;
if (SpecialSquawk) {
$('#SpecialSquawkWarning').css('display', 'inline');
@@ -485,16 +469,6 @@ function refreshTableInfo() {
$('#SpecialSquawkWarning').css('display', 'none');
}
- // Click event for table
- $('#planes_table').find('tr').click( function(){
- var hex = $(this).find('td:first').text();
- if (hex != "ICAO") {
- selectPlaneByHex(hex);
- refreshTableInfo();
- refreshSelected();
- }
- });
-
sortTable("tableinfo");
}
@@ -639,3 +613,9 @@ function drawCircle(marker, distance) {
});
circle.bindTo('center', marker, 'position');
}
+
+function planeTRclick(hex) {
+ selectPlaneByHex(hex);
+ refreshTableInfo();
+ refreshSelected();
+}
\ No newline at end of file