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>
This commit is contained in:
parent
cfd001702f
commit
b052d63789
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user