Fix not showing syslog card when disabled

pull/163/head
Thorsten von Eicken 9 years ago
parent 52843c6316
commit 3403e583f2
  1. 6
      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");

Loading…
Cancel
Save