diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-06-17 21:46:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-17 16:38:11 -0700 |
commit | b052d6378901afcadb69e7c0c05493a0e6a7c0a3 (patch) | |
tree | 12207f56b2f6390dc066b079aeeeb4b0c69de1cf /theme/list_lib.js | |
parent | cfd001702ff8b76b54f468ff3cce92abbb105f15 (diff) | |
download | subsurface-b052d6378901afcadb69e7c0c05493a0e6a7c0a3.tar.gz |
Hide the dive-related controls when showing trips
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'theme/list_lib.js')
-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 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'; } } |