aboutsummaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
Diffstat (limited to 'theme')
-rw-r--r--theme/list_lib.js6
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';
}
}