Add geo link to dialog box.

pull/21/head
Mark Jessop 2019-11-02 16:06:31 +10:30
rodzic a860eaec35
commit ddb605611a
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -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("<a href='geo:" + _last_pos[0].toFixed(5) + "," + _last_pos[1].toFixed(5) + "'>" + _last_pos[0].toFixed(5) + ", " + _last_pos[1].toFixed(5) + "</a>");
var _buttons = {
"Follow": function() {
// Follow the currently selected callsign.

Wyświetl plik

@ -588,7 +588,12 @@
<!-- Dialog boxes. These are activated from the telemetry table - see tables.js -->
<div id="telemetry-select-dialog" title="Payload Selection" style='display:none;'>
Select action:
<div class="paramRow">
<b>Current Position:</b> <div style='float:right;' id='telemDialogPosition'></div><br/>
</div>
<div class="paramRow">
<b>Select Action:</b><br/>
</div>
</div>
<div id="mark-recovered-dialog" title="Mark Payload Recovered" style='display:none;'>