summaryrefslogtreecommitdiffstats
path: root/theme/dive_export.html
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-08-04 14:02:16 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-11 08:20:55 -0700
commit93a15d471c81efe57d32208c20129c5ac17e3b4a (patch)
tree11aba8e41c9753213c2794f393219806d9069434 /theme/dive_export.html
parent4b22b740919b33228550ec2a9a24cfad5d90dcfc (diff)
downloadsubsurface-93a15d471c81efe57d32208c20129c5ac17e3b4a.tar.gz
HTML: Make export statistics optional.
Make exporting statistics to the HTML page optional. 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/dive_export.html')
-rw-r--r--theme/dive_export.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/theme/dive_export.html b/theme/dive_export.html
index 91b0ef749..065a8a4f1 100644
--- a/theme/dive_export.html
+++ b/theme/dive_export.html
@@ -121,6 +121,9 @@ window.onload=function(){
showAllDives();
document.getElementById("divePanel").style.display='none';
document.getElementById("diveStat").style.display='none';
+ if (divestat.length <= 0)
+ document.getElementById("stats_button").style.display='none';
+
document.body.style.visibility='visible';
document.onkeydown = switchDives;