mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhemweb_weekprofile: fix selecting on|off
git-svn-id: https://svn.fhem.de/fhem/trunk@23413 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ff04ec9dfd
commit
1f3aac2355
@ -584,10 +584,16 @@ function FW_weekprofileEditDay(widget,day)
|
||||
for (var k=tempOff; k <= tempOn; k+=.5)
|
||||
{
|
||||
var selected = (k == temps[i]) ? "selected " : "";
|
||||
if (k == widget.TEMP_OFF)
|
||||
if (k == widget.TEMP_OFF) {
|
||||
// currently weekprofile save on|off into json data
|
||||
selected = (temps[i] == "off") ? "selected " : "";
|
||||
html += "<option "+selected+"value=\"off\">off</option>";
|
||||
else if (k == widget.TEMP_ON)
|
||||
}
|
||||
else if (k == widget.TEMP_ON) {
|
||||
// currently weekprofile save on|off into json data
|
||||
selected = (temps[i] == "on") ? "selected " : "";
|
||||
html += "<option "+selected+"value=\"on\">on</option>";
|
||||
}
|
||||
else
|
||||
html += "<option "+selected+"value=\""+k.toFixed(1)+"\">"+k.toFixed(1)+"</option>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user