From ddb605611a8a43965ed5333340ea6c7c16b02d6f Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sat, 2 Nov 2019 16:06:31 +1030 Subject: [PATCH] Add geo link to dialog box. --- static/js/tables.js | 5 +++++ templates/index.html | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/static/js/tables.js b/static/js/tables.js index e315886..bcf7dd2 100644 --- a/static/js/tables.js +++ b/static/js/tables.js @@ -95,6 +95,11 @@ function telemetryTableDialog(e, row){ return; } + // Add the last position to the dialog box, and create it as a geo link. + var _last_pos = balloon_positions[callsign].latest_data.position; + $('#telemDialogPosition').html("" + _last_pos[0].toFixed(5) + ", " + _last_pos[1].toFixed(5) + ""); + + var _buttons = { "Follow": function() { // Follow the currently selected callsign. diff --git a/templates/index.html b/templates/index.html index e92c882..edb1406 100644 --- a/templates/index.html +++ b/templates/index.html @@ -588,7 +588,12 @@