diff --git a/CHANGELOG.md b/CHANGELOG.md index 37a1b519d..6edaacd00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed - Removed `heating_circuit` config setting +- Removed showing the JSON config files when Saving from the Web ## [1.9.0] 2019-09-01 diff --git a/src/custom.js b/src/custom.js index 40ae95d10..93eca92fd 100644 --- a/src/custom.js +++ b/src/custom.js @@ -8,14 +8,11 @@ var custom_config = { "listen_mode": false, "shower_timer": false, "shower_alert": false, - "publish_time": 120 + "publish_time": 120, + "tx_mode": 1 } }; -function custom_commit() { - websock.send(JSON.stringify(custom_config)); -} - function listcustom() { document.getElementById("led_gpio").value = custom_config.settings.led_gpio; @@ -72,7 +69,7 @@ function savecustom() { custom_config.settings.publish_time = parseInt(document.getElementById("publish_time").value); custom_config.settings.tx_mode = parseInt(document.getElementById("tx_mode").value); - custom_uncommited(); + custom_saveconfig(); } function listCustomStats() { @@ -84,6 +81,8 @@ function listCustomStats() { document.getElementById("devicesshow").style.display = "none"; document.getElementById("thermostat_show").style.display = "none"; document.getElementById("boiler_show").style.display = "none"; + document.getElementById("sm_show").style.display = "none"; + document.getElementById("hp_show").style.display = "none"; return; } diff --git a/src/websrc/index.html b/src/websrc/index.html index cf0ac5d94..f3c19c566 100644 --- a/src/websrc/index.html +++ b/src/websrc/index.html @@ -21,7 +21,7 @@