Fixed bug with services page submitting on field click

Fixed bug with Makefile when COMPRESS_W_HTMLCOMPRESSOR = no
pull/72/head
Benjamin Runnels 9 years ago
parent 3eccd26e76
commit a895128c9f
  1. 4
      Makefile
  2. 2
      html/services.js

@ -400,6 +400,10 @@ ifeq ("$(COMPRESS_W_HTMLCOMPRESSOR)","yes")
$(Q) for file in `find html_compressed -type f -name "*.css"`; do \ $(Q) for file in `find html_compressed -type f -name "*.css"`; do \
java -jar tools/$(YUI_COMPRESSOR) $$file -o $$file; \ java -jar tools/$(YUI_COMPRESSOR) $$file -o $$file; \
done 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 endif
ifeq (,$(findstring mqtt,$(MODULES))) ifeq (,$(findstring mqtt,$(MODULES)))
$(Q) rm -rf html_compressed/mqtt.html $(Q) rm -rf html_compressed/mqtt.html

@ -53,7 +53,7 @@ function displayServices(data) {
var i, inputs = $("input"); var i, inputs = $("input");
for (i = 0; i < inputs.length; i++) { 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) }; inputs[i].onclick = function () { setService(this.name, this.checked) };
} }
} }

Loading…
Cancel
Save