hide image buttons when there are no providers
This commit is contained in:
parent
3b7184b5f4
commit
4583cf5b52
4 changed files with 53 additions and 18 deletions
17
ApiClient.js
17
ApiClient.js
|
@ -342,6 +342,23 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
return urlPrefix;
|
||||
}
|
||||
|
||||
self.getRemoteImageProviders = function (options) {
|
||||
|
||||
if (!options) {
|
||||
throw new Error("null options");
|
||||
}
|
||||
|
||||
var urlPrefix = getRemoteImagePrefix(options);
|
||||
|
||||
var url = self.getUrl(urlPrefix + "/RemoteImages/Providers", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.getAvailableRemoteImages = function (options) {
|
||||
|
||||
if (!options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue