diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 39db3f09..bc7ccbb7 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -259,9 +259,9 @@ Module.register("currentweather",{ */ getParams: function() { var params = "?"; - if(this.config.locationID !== false) { + if(this.config.locationID) { params += "id=" + this.config.locationID; - } else if(this.config.location !== false) { + } else if(this.config.location) { params += "q=" + this.config.location; } else if (this.firstEvent && this.firstEvent.geo) { params += "lat=" + this.firstEvent.geo.lat + "&lon=" + this.firstEvent.geo.lon diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index 7f3ef71d..51c3f56e 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -249,9 +249,9 @@ Module.register("weatherforecast",{ */ getParams: function() { var params = "?"; - if(this.config.locationID !== false) { + if(this.config.locationID) { params += "id=" + this.config.locationID; - } else if(this.config.location !== false) { + } else if(this.config.location) { params += "q=" + this.config.location; } else if (this.firstEvent && this.firstEvent.geo) { params += "lat=" + this.firstEvent.geo.lat + "&lon=" + this.firstEvent.geo.lon