Browse Source

web: init relay selectors inside relayConfig

pull/2013/head
Maxim Prokhorov 4 years ago
parent
commit
812c3ea8a0
17 changed files with 9119 additions and 9119 deletions
  1. BIN
      code/espurna/data/index.all.html.gz
  2. BIN
      code/espurna/data/index.light.html.gz
  3. BIN
      code/espurna/data/index.lightfox.html.gz
  4. BIN
      code/espurna/data/index.rfbridge.html.gz
  5. BIN
      code/espurna/data/index.rfm69.html.gz
  6. BIN
      code/espurna/data/index.sensor.html.gz
  7. BIN
      code/espurna/data/index.small.html.gz
  8. BIN
      code/espurna/data/index.thermostat.html.gz
  9. +524
    -524
      code/espurna/static/index.all.html.gz.h
  10. +509
    -509
      code/espurna/static/index.light.html.gz.h
  11. +1054
    -1054
      code/espurna/static/index.lightfox.html.gz.h
  12. +1157
    -1157
      code/espurna/static/index.rfbridge.html.gz.h
  13. +2459
    -2459
      code/espurna/static/index.rfm69.html.gz.h
  14. +1209
    -1209
      code/espurna/static/index.sensor.html.gz.h
  15. +1054
    -1054
      code/espurna/static/index.small.html.gz.h
  16. +1147
    -1147
      code/espurna/static/index.thermostat.html.gz.h
  17. +6
    -6
      code/html/custom.js

BIN
code/espurna/data/index.all.html.gz View File


BIN
code/espurna/data/index.light.html.gz View File


BIN
code/espurna/data/index.lightfox.html.gz View File


BIN
code/espurna/data/index.rfbridge.html.gz View File


BIN
code/espurna/data/index.rfm69.html.gz View File


BIN
code/espurna/data/index.sensor.html.gz View File


BIN
code/espurna/data/index.small.html.gz View File


BIN
code/espurna/data/index.thermostat.html.gz View File


+ 524
- 524
code/espurna/static/index.all.html.gz.h
File diff suppressed because it is too large
View File


+ 509
- 509
code/espurna/static/index.light.html.gz.h
File diff suppressed because it is too large
View File


+ 1054
- 1054
code/espurna/static/index.lightfox.html.gz.h
File diff suppressed because it is too large
View File


+ 1157
- 1157
code/espurna/static/index.rfbridge.html.gz.h
File diff suppressed because it is too large
View File


+ 2459
- 2459
code/espurna/static/index.rfm69.html.gz.h
File diff suppressed because it is too large
View File


+ 1209
- 1209
code/espurna/static/index.sensor.html.gz.h
File diff suppressed because it is too large
View File


+ 1054
- 1054
code/espurna/static/index.small.html.gz.h
File diff suppressed because it is too large
View File


+ 1147
- 1147
code/espurna/static/index.thermostat.html.gz.h
File diff suppressed because it is too large
View File


+ 6
- 6
code/html/custom.js View File

@ -983,8 +983,7 @@ function addSchedule(event) {
var type = (1 === event.data.schType) ? "switch" : "light";
template = $("#" + type + "ActionTemplate").children();
var actionLine = template.clone();
$(line).find("#schActionDiv").append(actionLine);
$(line).find("#schActionDiv").append(template.clone());
$(line).find("input").each(function() {
$(this).attr("tabindex", tabindex);
@ -1028,10 +1027,6 @@ function initRelays(data) {
$("label.toggle", line).prop("for", "relay" + i)
line.appendTo("#relays");
// Populate the relay SELECTs
$("select.isrelay").append(
$("<option></option>").attr("value",i).text("Switch #" + i));
}
}
@ -1096,6 +1091,11 @@ function initRelayConfig(data) {
}
line.appendTo("#relayConfig");
// Populate the relay SELECTs
$("select.isrelay").append(
$("<option></option>").attr("value",i).text("Switch #" + i));
}
}


Loading…
Cancel
Save