From e1779f948eb9139bab6d8f699b96862268d6eeb5 Mon Sep 17 00:00:00 2001 From: DewGew Date: Fri, 29 Sep 2023 10:57:57 +0200 Subject: [PATCH] Small Changes settingspage --- static/js/smarthome.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/static/js/smarthome.js b/static/js/smarthome.js index f4d9edf..b7904e5 100644 --- a/static/js/smarthome.js +++ b/static/js/smarthome.js @@ -318,16 +318,19 @@ function getUser(user) { } function showDiv(that) { - if (that.value == "true") { + if (that.value == "true" && that.id == "ssl") { $("#pathcert").fadeIn(1000); - $("#pathkey").fadeIn(1000); - $("#div_token").fadeIn(1000); + $("#pathkey").fadeIn(1000); } else { $("#pathcert").fadeOut(500); - $("#pathkey").fadeOut(500); - $("#div_token").fadeOut(500); + $("#pathkey").fadeOut(500); } - if (that.value == "nouser") { + if (that.value == "true" && that.id == "googleassist") { + $("#div_token").fadeIn(1000); + } else { + $("#div_token").fadeOut(500); + } + if (that.value == "nouser") { $(".forms").fadeOut(500); } else { $(".forms").hide();