mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #358 - Weather validation in Server configuration
This commit is contained in:
parent
2819522ca5
commit
85f129c738
4 changed files with 1 additions and 37 deletions
18
ApiClient.js
18
ApiClient.js
|
@ -1245,24 +1245,6 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets weather info
|
||||
* @param {String} location - us zip code / city, state, country / city, country
|
||||
* Omit location to get weather info using stored server configuration value
|
||||
*/
|
||||
self.getWeatherInfo = function (location) {
|
||||
|
||||
var url = self.getUrl("weather", {
|
||||
location: location
|
||||
});
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets all users from the server
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue