diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-07-04 14:37:09 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-04 06:35:33 -0700 |
commit | 8ad6c61891176ccf8c2027627adcbd4b77745864 (patch) | |
tree | 35472e8c6f6cf51e871e068581e88aa6d0b92077 /theme/list_lib.js | |
parent | 11d2364c129bf828563a07bc48e33c742bfc72c5 (diff) | |
download | subsurface-8ad6c61891176ccf8c2027627adcbd4b77745864.tar.gz |
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>
Diffstat (limited to 'theme/list_lib.js')
-rw-r--r-- | theme/list_lib.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index da63f0ca6..67e80e4c2 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -185,7 +185,7 @@ function unexpand(ul) 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.time + '</div>' + '<div class="item_large">' + dive.location + '</div>' + @@ -1025,7 +1025,7 @@ function showDiveDetails(dive) function setDiveTitle(dive) { 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; } |