mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-13 03:37:05 +01:00
web: init relay selectors inside relayConfig
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1048
code/espurna/static/index.all.html.gz.h
generated
1048
code/espurna/static/index.all.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1018
code/espurna/static/index.light.html.gz.h
generated
1018
code/espurna/static/index.light.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
2108
code/espurna/static/index.lightfox.html.gz.h
generated
2108
code/espurna/static/index.lightfox.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
2314
code/espurna/static/index.rfbridge.html.gz.h
generated
2314
code/espurna/static/index.rfbridge.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
4918
code/espurna/static/index.rfm69.html.gz.h
generated
4918
code/espurna/static/index.rfm69.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
2418
code/espurna/static/index.sensor.html.gz.h
generated
2418
code/espurna/static/index.sensor.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
2108
code/espurna/static/index.small.html.gz.h
generated
2108
code/espurna/static/index.small.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
2294
code/espurna/static/index.thermostat.html.gz.h
generated
2294
code/espurna/static/index.thermostat.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
@@ -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));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user