From 5d949c6452fc2efa03358df0c39221e0e6b15d60 Mon Sep 17 00:00:00 2001 From: shaun feakes Date: Sun, 22 Jul 2018 15:53:18 -0500 Subject: [PATCH] Small UI fix --- web/hk/index.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/web/hk/index.html b/web/hk/index.html index 9723dec..35b3f4a 100644 --- a/web/hk/index.html +++ b/web/hk/index.html @@ -1,5 +1,7 @@ + + - - - AqualinkD @@ -763,6 +762,14 @@ } document.getElementById('wrapper').classList.add("opaque"); } else { + // Fake onclick to close and save any values if open + if (document.getElementById('thermostat_options').style.display == 'flex') + document.getElementById("options_close").click(); + else if (document.getElementById('swg_options').style.display == 'flex') + document.getElementById("swg_options_close").click(); + else if (document.getElementById('pswitch_options').style.display == 'flex') + document.getElementById("pswitch_options_close").click(); + document.getElementById('thermostat_options').style.display = 'none'; document.getElementById('swg_options').style.display = 'none'; document.getElementById('pswitch_options').style.display = 'none'; @@ -1021,7 +1028,7 @@ -
+