|
|
@ -57,6 +57,8 @@ function loadWeather(reload) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$("#forecast-location").text(resp.location_name);
|
|
|
|
$("#forecast-location").text(resp.location_name);
|
|
|
|
$("#forecast-info").text("Forecast covers the next " + resp.forecast_hours + " hours (until " + timestampToTimeString(resp.forecast_until) + ").");
|
|
|
|
$("#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 {
|
|
|
|
} else {
|
|
|
|
app.dialog.alert(resp.message, "Error");
|
|
|
|
app.dialog.alert(resp.message, "Error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|