diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-05 10:38:59 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-05 10:38:59 -0500 |
| commit | 36dc3a5318d7fe280311b5ffeaa63f40b2410c08 (patch) | |
| tree | 27cfb64bee8d467aeebd8c096a1c0e106b173cf5 /MediaBrowser.WebDashboard/ApiClient.js | |
| parent | 3f4784f788efeb42f1bc096045ec9a0cd6b74476 (diff) | |
hide image buttons when there are no providers
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
| -rw-r--r-- | MediaBrowser.WebDashboard/ApiClient.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js index a55879d2d..3254b84f3 100644 --- a/MediaBrowser.WebDashboard/ApiClient.js +++ b/MediaBrowser.WebDashboard/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) { |
