diff --git a/Makefile b/Makefile index 5ea80d9..b1af0e0 100644 --- a/Makefile +++ b/Makefile @@ -400,6 +400,10 @@ ifeq ("$(COMPRESS_W_HTMLCOMPRESSOR)","yes") $(Q) for file in `find html_compressed -type f -name "*.css"`; do \ java -jar tools/$(YUI_COMPRESSOR) $$file -o $$file; \ done +else + $(Q) cp -r html/head- html_compressed; + $(Q) cp -r html/*.html html_compressed; + $(Q) cp -r html/wifi/*.html html_compressed/wifi; endif ifeq (,$(findstring mqtt,$(MODULES))) $(Q) rm -rf html_compressed/mqtt.html diff --git a/html/services.js b/html/services.js index 5b2395d..61de005 100644 --- a/html/services.js +++ b/html/services.js @@ -53,7 +53,7 @@ function displayServices(data) { var i, inputs = $("input"); for (i = 0; i < inputs.length; i++) { - if (inputs[i].type == "checkbox" && (inputs[i].name == "syslog_enable" || inputs[i].name == "mdns_enable")) { } + if (inputs[i].type == "checkbox" && (inputs[i].name == "syslog_enable" || inputs[i].name == "mdns_enable")) inputs[i].onclick = function () { setService(this.name, this.checked) }; } }