[PATCH 3/3] Hide the dive-related controls when showing trips

Anton Lundin glance at acc.umu.se
Wed Jun 17 12:46:39 PDT 2015


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 theme/list_lib.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/theme/list_lib.js b/theme/list_lib.js
index 0459aad..b698254 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';
 	}
 }
 
-- 
2.1.4



More information about the subsurface mailing list