projects
/
ets2_tele.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
636cec0
)
* Round cargo mass display to first decimal digit in dash.html.
master
author
Urban Wallasch
<urban.wallasch@freenet.de>
Wed, 18 Aug 2021 14:35:08 +0000
(16:35 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Wed, 18 Aug 2021 14:35:08 +0000
(16:35 +0200)
dash.html
patch
|
blob
|
history
diff --git
a/dash.html
b/dash.html
index d5d42142e42fac19bb47ca719446d669436087ff..a09b4d6454ac2a2604248c165e7983f27ef07952 100644
(file)
--- a/
dash.html
+++ b/
dash.html
@@
-510,7
+510,7
@@
function update_cb() {
// current job parameters:
if ( !last_tele || last_tele.job_isvalid != tele.job_isvalid ) {
cargo.innerHTML = tele.job_isvalid ? tele.job_cargo : '-';
// current job parameters:
if ( !last_tele || last_tele.job_isvalid != tele.job_isvalid ) {
cargo.innerHTML = tele.job_isvalid ? tele.job_cargo : '-';
- cargomass.innerHTML = tele.job_isvalid ? (tele.job_cargo_mass / 1000).toFixed(
0
) + 't' : '-';
+ cargomass.innerHTML = tele.job_isvalid ? (tele.job_cargo_mass / 1000).toFixed(
1
) + 't' : '-';
source.innerHTML = tele.job_isvalid ? tele.job_source_city : '-';
destination.innerHTML = tele.job_isvalid ? tele.job_destination_city : '-';
job_dist.innerHTML = tele.job_isvalid ? tele.job_planned_distance + 'km' : '-';
source.innerHTML = tele.job_isvalid ? tele.job_source_city : '-';
destination.innerHTML = tele.job_isvalid ? tele.job_destination_city : '-';
job_dist.innerHTML = tele.job_isvalid ? tele.job_planned_distance + 'km' : '-';