mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
HTML: dive numbering starts from one instead of zero
since the practise is that the first dive is number 1. so change the first dive number to 1 instead of 0. 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:
parent
11d2364c12
commit
8ad6c61891
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ function unexpand(ul)
|
||||||
|
|
||||||
function getlimited(dive)
|
function getlimited(dive)
|
||||||
{
|
{
|
||||||
return '<div style="height:20px"><div class="item">' + (settings.subsurfaceNumbers === '0' ? dive.number : dive.subsurface_number) + '</div>' +
|
return '<div style="height:20px"><div class="item">' + (settings.subsurfaceNumbers === '0' ? dive.number + 1 : dive.subsurface_number) + '</div>' +
|
||||||
'<div class="item">' + dive.date + '</div>' +
|
'<div class="item">' + dive.date + '</div>' +
|
||||||
'<div class="item">' + dive.time + '</div>' +
|
'<div class="item">' + dive.time + '</div>' +
|
||||||
'<div class="item_large">' + dive.location + '</div>' +
|
'<div class="item_large">' + dive.location + '</div>' +
|
||||||
|
@ -1025,7 +1025,7 @@ function showDiveDetails(dive)
|
||||||
function setDiveTitle(dive)
|
function setDiveTitle(dive)
|
||||||
{
|
{
|
||||||
document.getElementById("dive_no").innerHTML = "Dive No. " + (settings.subsurfaceNumbers === '0' ?
|
document.getElementById("dive_no").innerHTML = "Dive No. " + (settings.subsurfaceNumbers === '0' ?
|
||||||
dive.number : dive.subsurface_number);
|
dive.number + 1 : dive.subsurface_number);
|
||||||
document.getElementById("dive_location").innerHTML = dive.location;
|
document.getElementById("dive_location").innerHTML = dive.location;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue