2
0
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:
Risiko 2021-02-17 18:54:21 +00:00
parent cc8f7361c5
commit fbb9b87d00
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# 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.
- change: 98_weekprofile: don't display '°C' by temperature keywords
- change: 70_CanOverEthernet: changed indirect object notation (Perl 7 comp)
- change: 70_ZoneMinder: fixed authentication for 1.34.x, API 2.0
- feature: 98_weekprofile: custom temperature keywords

View File

@ -409,7 +409,11 @@ function FW_weekprofileShow(widget)
$(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>');
}
}