mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
removed publish_always, change how publish_time works
This commit is contained in:
@@ -8,8 +8,7 @@ var custom_config = {
|
||||
"listen_mode": false,
|
||||
"shower_timer": false,
|
||||
"shower_alert": false,
|
||||
"publish_time": 120,
|
||||
"publish_always": false,
|
||||
"publish_time": 0,
|
||||
"tx_mode": 1
|
||||
}
|
||||
};
|
||||
@@ -40,10 +39,6 @@ function listcustom() {
|
||||
if (custom_config.settings.shower_alert) {
|
||||
$("input[name=\"shower_alert\"][value=\"1\"]").prop("checked", true);
|
||||
}
|
||||
|
||||
if (custom_config.settings.publish_always) {
|
||||
$("input[name=\"publish_always\"][value=\"1\"]").prop("checked", true);
|
||||
}
|
||||
}
|
||||
|
||||
function savecustom() {
|
||||
@@ -75,11 +70,6 @@ function savecustom() {
|
||||
custom_config.settings.led = true;
|
||||
}
|
||||
|
||||
custom_config.settings.publish_always = false;
|
||||
if (parseInt($("input[name=\"publish_always\"]:checked").val()) === 1) {
|
||||
custom_config.settings.publish_always = true;
|
||||
}
|
||||
|
||||
custom_config.settings.publish_time = parseInt(document.getElementById("publish_time").value);
|
||||
custom_config.settings.tx_mode = parseInt(document.getElementById("tx_mode").value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user