CHANGED: The Weather Forecast module by default displays the ° symbol after every numeric value to be consistent with the Current Weather module.

This commit is contained in:
György Balássy
2018-12-14 11:32:58 +01:00
parent f38203ef62
commit f0c516e82d
3 changed files with 11 additions and 5 deletions

View File

@@ -142,14 +142,14 @@ Module.register("weatherforecast",{
icon.className = "wi weathericon " + forecast.icon;
iconCell.appendChild(icon);
var degreeLabel = "";
var degreeLabel = "°";
if(this.config.scale) {
switch(this.config.units) {
case "metric":
degreeLabel = " °C";
degreeLabel += " C";
break;
case "imperial":
degreeLabel = " °F";
degreeLabel += " F";
break;
case "default":
degreeLabel = "K";