From 93a15d471c81efe57d32208c20129c5ac17e3b4a Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Mon, 4 Aug 2014 14:02:16 +0300 Subject: HTML: Make export statistics optional. Make exporting statistics to the HTML page optional. Signed-off-by: Gehad elrobey Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- theme/dive_export.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'theme/dive_export.html') 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; -- cgit v1.2.3-70-g09d2