summaryrefslogtreecommitdiffstats
path: root/theme/list_lib.js
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-06-25 01:41:23 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-30 07:56:25 -0700
commit60049941ba9cfd80d6b11ce84ba0b8dd165b2b38 (patch)
tree0496e8d7383803b1a92637991fb7075b86dab3a6 /theme/list_lib.js
parent10345d62fcb3bbe16d1c048e281f37e8570c4a19 (diff)
downloadsubsurface-60049941ba9cfd80d6b11ce84ba0b8dd165b2b38.tar.gz
HTML: dive list must remember the last dive in display
When switching between dives in detailed view, The dive list must be switched too. 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.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index e1ea5644f..882330a4c 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -922,6 +922,8 @@ function showDiveDetails(dive)
*/
function unshowDiveDetails(dive)
{
+ start = dive_id;
+ viewInPage();
document.getElementById("diveListPanel").style.display = 'block';
document.getElementById("divePanel").style.display = 'none';
}