From 3403e583f28f9a0d4f35c6a6266b989d3a666f7d Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Sat, 18 Jun 2016 22:40:09 -0700 Subject: [PATCH] Fix not showing syslog card when disabled --- html/services.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/services.js b/html/services.js index aedeea3..3f16975 100644 --- a/html/services.js +++ b/html/services.js @@ -51,8 +51,12 @@ function displayServices(data) { $("#sntp-spinner").setAttribute("hidden", ""); $("#mdns-spinner").setAttribute("hidden", ""); - if (data.syslog_host !== undefined) + if (data.syslog_host !== undefined) { $("#Syslog-form").removeAttribute("hidden"); + } else { + # syslog disabled... + $("#Syslog-form").parentNode.setAttribute("hidden", ""); + } $("#SNTP-form").removeAttribute("hidden"); $("#mDNS-form").removeAttribute("hidden");