diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/list_lib.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index 0da11089b..2b5931dab 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -792,8 +792,8 @@ function get_dive_HTML(dive) */ function get_status_HTML(dive) { - return '<h2 class="det_hed">Dive Status</h2><table><tr><td class="words">Sac: </td><td>' + dive.sac + - '</td><td class="words"> Otu: </td><td>' + dive.otu + + return '<h2 class="det_hed">Dive Status</h2><table><tr><td class="words">Sac: </td><td>' + ml_to_litre(dive.sac) + + ' l/min' + '</td><td class="words"> Otu: </td><td>' + dive.otu + '</td><td class="words"> Cns: </td><td>' + dive.cns + '</td></tr></table>'; }; @@ -850,6 +850,11 @@ function mm_to_meter(mm) return mm / (1000); } +function ml_to_litre(ml) +{ + return ml / (1000); +} + function format_two_digit(n) { return n > 9 ? "" + n : "0" + n; |