From 818bd9903a0e5a5d849ac237481448b002d3bf94 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Sat, 14 Jun 2014 19:20:37 +0300 Subject: HTML: move between dives in detailed view. Move between next/prev dives in detailed view, and be able to go back to the list. Also fix the initial state of the sorting by number. (its already exported in ascending order) Signed-off-by: Gehad elrobey Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'theme/list_lib.js') 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_id0){ + showDiveDetails(--dive_id); + } +} -- cgit v1.2.3-70-g09d2