summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--theme/dive_export.html7
-rw-r--r--theme/list_lib.js14
2 files changed, 20 insertions, 1 deletions
diff --git a/theme/dive_export.html b/theme/dive_export.html
index 2374c0758..e1b3189b5 100644
--- a/theme/dive_export.html
+++ b/theme/dive_export.html
@@ -156,6 +156,13 @@ function changeAdvSearch(e){
</center>
</div>
<div id="divePanel">
+ <center>
+ <div id="but">
+ <button onClick="prevDetailedDive()">&lt;-</button>
+ <button onClick="unshowDiveDetails()">Back to List</button>
+ <button onClick="nextDetailedDive()">-&gt;</button>
+ </div>
+ </center>
<div id="diveprofile">
<h2>Dive profile</h2>
<canvas id="profileCanvas"></canvas>
diff --git a/theme/list_lib.js b/theme/list_lib.js
index ff51e293f..b19c2eafe 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -227,7 +227,7 @@ function putRating(rating){
this variables keep the state of
each col. sorted asc or des
*/
-var number = true;
+var number = false;
var time = true;
var date = true;
var air = true;
@@ -813,3 +813,15 @@ function unshowDiveDetails(dive){
document.getElementById("diveListPanel").style.display='block';
document.getElementById("divePanel").style.display='none';
}
+
+function nextDetailedDive(){
+ if(dive_id<items.length){
+ showDiveDetails(++dive_id);
+ }
+}
+
+function prevDetailedDive(){
+ if(dive_id>0){
+ showDiveDetails(--dive_id);
+ }
+}