HTML: add units to time in dive profile.

Also change the separator to a colon which is more readable.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad elrobey 2014-08-15 11:13:35 +03:00 committed by Dirk Hohndel
parent 27e400f5e4
commit 9194a43fd4

View file

@ -1095,7 +1095,7 @@ function canvas_draw()
if(seriesIndex===2) if(seriesIndex===2)
return items[dive_id].events[pointIndex].name; return items[dive_id].events[pointIndex].name;
else else
return str; return str.replace(",", " : ");
} }
}, },
seriesDefaults : { seriesDefaults : {
@ -1138,7 +1138,7 @@ function canvas_draw()
tickRenderer : $.jqplot.CanvasAxisTickRenderer, tickRenderer : $.jqplot.CanvasAxisTickRenderer,
tickOptions : { tickOptions : {
showGridline : false, showGridline : false,
formatString : '%i' formatString : '%is'
}, },
label:'Time (min)' label:'Time (min)'
}, },