From a895128c9f89e4e82a9f572570ceca7c5dc4e991 Mon Sep 17 00:00:00 2001 From: Benjamin Runnels Date: Wed, 9 Dec 2015 06:59:27 -0600 Subject: [PATCH] Fixed bug with services page submitting on field click Fixed bug with Makefile when COMPRESS_W_HTMLCOMPRESSOR = no --- Makefile | 4 ++++ html/services.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) }; } }