diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/list_lib.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index 8c365d5a5..ed9bc2c16 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -1166,6 +1166,7 @@ function showDiveDetails(dive) document.getElementById("diveListPanel").style.display = 'none'; document.getElementById("divePanel").style.display = 'block'; canvas_draw(); + scrollToTheTop(); } function setDiveTitle(dive) @@ -1218,6 +1219,11 @@ function switchDives(e) } } +function scrollToTheTop() +{ + window.scrollTo(0, 0); +} + window.onresize = function(event) { if (plot1) |