Update currentweather.js

This commit is contained in:
roxasvalor 2016-04-24 17:40:18 -05:00
parent 77cb8530e5
commit 8d29bd5c32

View File

@ -19,7 +19,7 @@ Module.register("currentweather",{
timeFormat: config.timeFormat,
showPeriod: true,
showPeriodUpper: false,
showDirection: false,
showDirection: true,
lang: config.language,
initialLoadDelay: 0, // 0 seconds delay
@ -115,9 +115,11 @@ Module.register("currentweather",{
windSpeed.innerHTML = " " + this.windSpeed;
small.appendChild(windSpeed);
var windDirection = document.createElement("span");
windDirection.innerHTML = " " + this.windDirection;
small.appendChild(windDirection);
if (this.showDirection) {
var windDirection = document.createElement("span");
windDirection.innerHTML = " " + this.windDirection;
small.appendChild(windDirection);
}
var spacer = document.createElement("span");
spacer.innerHTML = " ";
@ -318,7 +320,7 @@ Module.register("currentweather",{
}else{
return "N";
}
}
},
roundValue: function(temperature) {