mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Removing extra commas from array initialization
Comma should be used on array initialization only between elements, not at the end. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a50631e026
commit
5723cfc1d0
1 changed files with 15 additions and 15 deletions
|
@ -855,14 +855,14 @@ function canvas_draw()
|
||||||
if (items[dive_id].samples[i][3] !== 0) {
|
if (items[dive_id].samples[i][3] !== 0) {
|
||||||
temperatureData.push([
|
temperatureData.push([
|
||||||
items[dive_id].samples[i][0] / 60,
|
items[dive_id].samples[i][0] / 60,
|
||||||
mkelvin_to_C(items[dive_id].samples[i][3]),
|
mkelvin_to_C(items[dive_id].samples[i][3])
|
||||||
]);
|
]);
|
||||||
last = items[dive_id].samples[i][3];
|
last = items[dive_id].samples[i][3];
|
||||||
} else {
|
} else {
|
||||||
if (last !== 0) {
|
if (last !== 0) {
|
||||||
temperatureData.push([
|
temperatureData.push([
|
||||||
items[dive_id].samples[i][0] / 60,
|
items[dive_id].samples[i][0] / 60,
|
||||||
mkelvin_to_C(last),
|
mkelvin_to_C(last)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -870,14 +870,14 @@ function canvas_draw()
|
||||||
for (var i = 0; i < items[dive_id].events.length; i++) {
|
for (var i = 0; i < items[dive_id].events.length; i++) {
|
||||||
eventsData.push([
|
eventsData.push([
|
||||||
items[dive_id].events[i].time / 60,
|
items[dive_id].events[i].time / 60,
|
||||||
0,
|
0
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
plot1 = $.jqplot('chart1', [
|
plot1 = $.jqplot('chart1', [
|
||||||
depthData,
|
depthData,
|
||||||
pressureData,
|
pressureData,
|
||||||
eventsData,
|
eventsData,
|
||||||
temperatureData,
|
temperatureData
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
grid : {
|
grid : {
|
||||||
|
@ -906,27 +906,27 @@ function canvas_draw()
|
||||||
showMarker : true,
|
showMarker : true,
|
||||||
showLine : true,
|
showLine : true,
|
||||||
fill : true,
|
fill : true,
|
||||||
yaxis : 'yaxis',
|
yaxis : 'yaxis'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color : 'rgba(44, 190, 160, 0.7)',
|
color : 'rgba(44, 190, 160, 0.7)',
|
||||||
showMarker : false,
|
showMarker : false,
|
||||||
rendererOptions : {
|
rendererOptions : {
|
||||||
smooth : true,
|
smooth : true
|
||||||
},
|
},
|
||||||
yaxis : 'y2axis',
|
yaxis : 'y2axis'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
showLine:false,
|
showLine:false,
|
||||||
markerOptions: { size: 10, style:"o" },
|
markerOptions: { size: 10, style:"o" },
|
||||||
pointLabels: { show:false, } ,
|
pointLabels: { show:false }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
showLine:true,
|
showLine:true,
|
||||||
showMarker : false,
|
showMarker : false,
|
||||||
pointLabels: { show:false, } ,
|
pointLabels: { show:false },
|
||||||
yaxis : 'y3axis',
|
yaxis : 'y3axis'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
axes : {
|
axes : {
|
||||||
xaxis : {
|
xaxis : {
|
||||||
|
@ -934,7 +934,7 @@ function canvas_draw()
|
||||||
tickRenderer : $.jqplot.CanvasAxisTickRenderer,
|
tickRenderer : $.jqplot.CanvasAxisTickRenderer,
|
||||||
tickOptions : {
|
tickOptions : {
|
||||||
showGridline : false,
|
showGridline : false,
|
||||||
formatString : '%i',
|
formatString : '%i'
|
||||||
},
|
},
|
||||||
label:'Time (min)'
|
label:'Time (min)'
|
||||||
},
|
},
|
||||||
|
@ -961,9 +961,9 @@ function canvas_draw()
|
||||||
showMark: false,
|
showMark: false,
|
||||||
showLabel: false,
|
showLabel: false,
|
||||||
shadow: false,
|
shadow: false,
|
||||||
formatString : '%i C',
|
formatString : '%i C'
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue