Browse Source

0.8.910003

fix if - endif - Plugin zeroexport
pull/1521/head
lumapu 11 months ago
parent
commit
4e0dab794d
  1. 1
      src/platformio.ini
  2. 17
      src/web/html/setup.html

1
src/platformio.ini

@ -334,6 +334,7 @@ build_flags = ${env.build_flags}
-DENABLE_MQTT -DENABLE_MQTT
-DPLUGIN_DISPLAY -DPLUGIN_DISPLAY
-DENABLE_HISTORY -DENABLE_HISTORY
-DPLUGIN_ZEROEXPORT
-DSPI_HAL -DSPI_HAL
-DDEF_NRF_CS_PIN=37 -DDEF_NRF_CS_PIN=37
-DDEF_NRF_CE_PIN=38 -DDEF_NRF_CE_PIN=38

17
src/web/html/setup.html

@ -305,8 +305,8 @@
</div> </div>
<!--ENDIF_PLUGIN_DISPLAY--> <!--ENDIF_PLUGIN_DISPLAY-->
<!-- Plugin ZeroExport -->
<button type="button" class="s_collapsible" id="zeroExport_button">{#ZE}</button> <button type="button" class="s_collapsible" id="zeroExport_button">{#ZE}</button>
<!--IF_PLUGIN_ZEROEXPORT-->
<div class="s_content" id="zeroExport"> <div class="s_content" id="zeroExport">
<fieldset class="mb-4"> <fieldset class="mb-4">
<legend class="des">{#ZE}</legend> <legend class="des">{#ZE}</legend>
@ -318,7 +318,7 @@
<div id="ze_groups"></div> <div id="ze_groups"></div>
</fieldset> </fieldset>
</div> </div>
<!-- Plugin ZeroExport - Ende --> <!--ENDIF_PLUGIN_ZEROEXPORT-->
<div class="row mb-4 mt-4"> <div class="row mb-4 mt-4">
<div class="col-8 col-sm-3">{#BTN_REBOOT_SUCCESSFUL_SAVE}</div> <div class="col-8 col-sm-3">{#BTN_REBOOT_SUCCESSFUL_SAVE}</div>
@ -1262,7 +1262,6 @@
} }
/*IF_PLUGIN_ZEROEXPORT*/ /*IF_PLUGIN_ZEROEXPORT*/
// Plugin ZeroExport
function ZeroExportGroup_Modal(obj, ivObj) { function ZeroExportGroup_Modal(obj, ivObj) {
// Tab_General // Tab_General
@ -1564,13 +1563,11 @@
} }
// Plugin ZeroExport - Ende
/*ENDIF_PLUGIN_ZEROEXPORT*/ /*ENDIF_PLUGIN_ZEROEXPORT*/
function parseZeroExport(obj, type) { function parseZeroExport(obj, type) {
/*IF_PLUGIN_ZEROEXPORT*/ /*IF_PLUGIN_ZEROEXPORT*/
// Plugin ZeroExport
// enabled // enabled
document.getElementsByName("ze_enabled")[0].checked = obj["enabled"]; document.getElementsByName("ze_enabled")[0].checked = obj["enabled"];
@ -1623,20 +1620,12 @@
e.append(ml("div", {class: "row my-3"}, ml("div", {class: "col a-r"}, ml("input", {type: "button", value: "{#BTN_INV_ADD}", class: "btn", onclick: function() { ZeroExportGroup_Modal(add); }}, null)))); e.append(ml("div", {class: "row my-3"}, ml("div", {class: "col a-r"}, ml("input", {type: "button", value: "{#BTN_INV_ADD}", class: "btn", onclick: function() { ZeroExportGroup_Modal(add); }}, null))));
} }
// ivGlob(obj); /*ELSE*/
// Plugin ZeroExport - Ende
/*ELIF_PLUGIN_ZEROEXPORT*/
var e = document.getElementById("zeroExport");
e.remove();
var e = document.getElementById("zeroExport_button"); var e = document.getElementById("zeroExport_button");
e.textContent += " (only for ESP32-S3 available)"; e.textContent += " (only for ESP32-S3 available)";
e.disabled = true; e.disabled = true;
element.classList.add("disabled"); element.classList.add("disabled");
/*ENDIF_PLUGIN_ZEROEXPORT*/ /*ENDIF_PLUGIN_ZEROEXPORT*/
} }
function parse(root) { function parse(root) {

Loading…
Cancel
Save