From b052d6378901afcadb69e7c0c05493a0e6a7c0a3 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 17 Jun 2015 21:46:39 +0200 Subject: Hide the dive-related controls when showing trips Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'theme') diff --git a/theme/list_lib.js b/theme/list_lib.js index 0459aad81..b6982543d 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -750,14 +750,20 @@ function getDefaultColor(){ function toggleTrips() { var trip_button = document.getElementById('trip_button'); + var controller = document.getElementById('controller'); + var no_dives_selector = document.getElementById('no_dives_selector'); if (tripsShown) { tripsShown = false; trip_button.style.backgroundColor = BACKGROUND_COLOR; viewInPage(); + controller.style.display = ''; + no_dives_selector.style.display = ''; } else { showtrips(); trip_button.style.backgroundColor = HEADER_COLOR; tripsShown = true; + dives_controller.style.display = 'none'; + no_dives_selector.style.display = 'none'; } } -- cgit v1.2.3-70-g09d2