Rearrangements to infoblock layout.
This commit is contained in:
parent
6daf116b40
commit
fac838b9ad
|
@ -116,7 +116,8 @@
|
|||
</tr>
|
||||
|
||||
<tr class="infoblock_body">
|
||||
<td colspan="2">Position: <span id="selected_position">n/a</span> <span id="selected_follow" onclick="toggleFollowSelected();" class="pointer">[ follow ⇒ ]</span></td>
|
||||
<td>Position: <span id="selected_position">n/a</span></td>
|
||||
<td><span id="selected_follow" onclick="toggleFollowSelected();" class="pointer">[ follow ⇒ ]</span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="infoblock_body">
|
||||
|
|
|
@ -570,7 +570,7 @@ function format_distance_long(dist) {
|
|||
|
||||
// p as a LatLng
|
||||
function format_latlng(p) {
|
||||
return p.lat().toFixed(5) + DEGREES + "," + NBSP + p.lng().toFixed(5) + DEGREES;
|
||||
return p.lat().toFixed(3) + DEGREES + "," + NBSP + p.lng().toFixed(3) + DEGREES;
|
||||
}
|
||||
|
||||
// Refresh the detail window about the plane
|
||||
|
@ -641,7 +641,7 @@ function refreshSelected() {
|
|||
if (selected.seen <= 1) {
|
||||
$('#selected_seen').text('now');
|
||||
} else {
|
||||
$('#selected_seen').text(selected.seen + 's ago');
|
||||
$('#selected_seen').text(selected.seen + 's');
|
||||
}
|
||||
|
||||
if (selected.position === null) {
|
||||
|
@ -649,7 +649,7 @@ function refreshSelected() {
|
|||
$('#selected_follow').addClass('hidden');
|
||||
} else {
|
||||
if (selected.seen_pos > 1) {
|
||||
$('#selected_position').text(format_latlng(selected.position) + " (" + selected.seen_pos + "s ago)");
|
||||
$('#selected_position').text(format_latlng(selected.position) + " (" + selected.seen_pos + "s)");
|
||||
} else {
|
||||
$('#selected_position').text(format_latlng(selected.position));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue