Show mlat positions differently in the detail pane.

This commit is contained in:
Oliver Jowett 2015-06-29 14:04:52 +01:00
parent de4e233969
commit 32f87412d6

View file

@ -598,10 +598,11 @@ function refreshSelected() {
$('#selected_position').text('n/a');
$('#selected_follow').addClass('hidden');
} else {
var mlat_bit = (selected.position_from_mlat ? "MLAT: " : "");
if (selected.seen_pos > 1) {
$('#selected_position').text(format_latlng(selected.position) + " (" + selected.seen_pos.toFixed(1) + "s)");
$('#selected_position').text(mlat_bit + format_latlng(selected.position) + " (" + selected.seen_pos.toFixed(1) + "s)");
} else {
$('#selected_position').text(format_latlng(selected.position));
$('#selected_position').text(mlat_bit + format_latlng(selected.position));
}
$('#selected_follow').removeClass('hidden');
if (FollowSelected) {