aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/ApiClient.js
diff options
context:
space:
mode:
authorTechywarrior <techywarrior@gmail.com>2013-04-03 23:17:27 -0700
committerTechywarrior <techywarrior@gmail.com>2013-04-03 23:17:27 -0700
commit5489b98a45353551a0a97e437336590414ea9d9d (patch)
treec07bbd6ab4b5c811d3f835a044fd45869f77573c /MediaBrowser.WebDashboard/ApiClient.js
parent378237230f34b1eeaa1d81f356ba916e23c4da8c (diff)
parente8d03d49f21f2a17cc22204899eb10a4beb600bb (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
-rw-r--r--MediaBrowser.WebDashboard/ApiClient.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js
index 8380dc8e5..5ac4ecd8f 100644
--- a/MediaBrowser.WebDashboard/ApiClient.js
+++ b/MediaBrowser.WebDashboard/ApiClient.js
@@ -572,9 +572,12 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
/**
* Gets a list of plugins that are available to be installed
*/
- self.getAvailablePlugins = function () {
+ self.getAvailablePlugins = function (options) {
- var url = self.getUrl("Packages", { PackageType: "UserInstalled" });
+ options = $.extend({}, options || {});
+ options.PackageType = "UserInstalled";
+
+ var url = self.getUrl("Packages", options);
return self.ajax({
type: "GET",