diff --git a/www/assets/js/toolbox_weather.js b/www/assets/js/toolbox_weather.js index 3b93246..b576e3e 100644 --- a/www/assets/js/toolbox_weather.js +++ b/www/assets/js/toolbox_weather.js @@ -1,4 +1,4 @@ -/* +/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -57,6 +57,8 @@ function loadWeather(reload) { } $("#forecast-location").text(resp.location_name); $("#forecast-info").text("Forecast covers the next " + resp.forecast_hours + " hours (until " + timestampToTimeString(resp.forecast_until) + ")."); + $("#forecast-creditlink").text(resp.source.text); + $("#forecast-creditlink").attr("onclick", "openExternalBrowser('" + resp.source.url + "')"); } else { app.dialog.alert(resp.message, "Error"); } diff --git a/www/pages/toolbox/weather.html b/www/pages/toolbox/weather.html index 2364ae8..3e8579a 100644 --- a/www/pages/toolbox/weather.html +++ b/www/pages/toolbox/weather.html @@ -38,13 +38,13 @@

Wind speed: ...

- +