mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_weekprofile: don't display '°C' by temperature keywords
git-svn-id: https://svn.fhem.de/fhem/trunk@23761 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc8f7361c5
commit
fbb9b87d00
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- change: 98_weekprofile: don't display '°C' by temperature keywords
|
||||||
- change: 70_CanOverEthernet: changed indirect object notation (Perl 7 comp)
|
- change: 70_CanOverEthernet: changed indirect object notation (Perl 7 comp)
|
||||||
- change: 70_ZoneMinder: fixed authentication for 1.34.x, API 2.0
|
- change: 70_ZoneMinder: fixed authentication for 1.34.x, API 2.0
|
||||||
- feature: 98_weekprofile: custom temperature keywords
|
- feature: 98_weekprofile: custom temperature keywords
|
||||||
|
@ -409,7 +409,11 @@ function FW_weekprofileShow(widget)
|
|||||||
|
|
||||||
$(tr).append('<td>'+str+ '</td>');
|
$(tr).append('<td>'+str+ '</td>');
|
||||||
|
|
||||||
str = widget.PROFILE[shortDays[i]]['temp'][k]+' °C';
|
str = widget.PROFILE[shortDays[i]]['temp'][k];
|
||||||
|
var tempV = parseFloat(str);
|
||||||
|
if(!isNaN(tempV)) {
|
||||||
|
str += ' °C';
|
||||||
|
}
|
||||||
$(tr).append('<td>'+str+ '</td>');
|
$(tr).append('<td>'+str+ '</td>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user