Center "Distance from Site" for Selected Plane

Center "Distance from Site" under "Lat/Long" for selected plane.
This commit is contained in:
ddeitterick 2014-07-16 21:51:41 -04:00
parent c0d6ea073f
commit f933ed2723

View file

@ -326,12 +326,12 @@ function refreshSelected() {
dist /= 1852; dist /= 1852;
} }
dist = (Math.round((dist)*10)/10).toFixed(1); dist = (Math.round((dist)*10)/10).toFixed(1);
html += '<tr><td colspan="' + columns + '">Distance from Site: ' + dist + html += '<tr><td colspan="' + columns + '" align="center">Distance from Site: ' + dist +
(Metric ? ' km' : ' NM') + '</td></tr>'; (Metric ? ' km' : ' NM') + '</td></tr>';
} // End of SiteShow } // End of SiteShow
} else { } else {
if (SiteShow) { if (SiteShow) {
html += '<tr><td colspan="' + columns + '">Distance from Site: n/a ' + html += '<tr><td colspan="' + columns + '" align="center">Distance from Site: n/a ' +
(Metric ? ' km' : ' NM') + '</td></tr>'; (Metric ? ' km' : ' NM') + '</td></tr>';
} else { } else {
html += 'n/a</td></tr>'; html += 'n/a</td></tr>';