mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue