Need to hide syslog on the services page if it's not enabled in Makefile modules

pull/137/head
Benjamin Runnels 9 years ago
parent 8d80352216
commit 3a57e20fa2
  1. 5
      html/services.js

@ -51,7 +51,12 @@ function displayServices(data) {
$("#sntp-spinner").setAttribute("hidden", "");
$("#mdns-spinner").setAttribute("hidden", "");
if (data.syslog_host) {
$("#Syslog-form").removeAttribute("hidden");
} else {
$("#Syslog-form").parentNode.setAttribute("hidden", "");
}
$("#SNTP-form").removeAttribute("hidden");
$("#mDNS-form").removeAttribute("hidden");

Loading…
Cancel
Save