diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-06-14 19:20:37 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-15 09:25:47 -0700 |
commit | 818bd9903a0e5a5d849ac237481448b002d3bf94 (patch) | |
tree | a1fd162d0bdda4dafc8a0d4f86556e66bfd069f2 /theme/list_lib.js | |
parent | d363722c1656733be0c75f73b7a65cd116c3d7da (diff) | |
download | subsurface-818bd9903a0e5a5d849ac237481448b002d3bf94.tar.gz |
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 <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 | 14 |
1 files changed, 13 insertions, 1 deletions
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); + } +} |