restored network browser

This commit is contained in:
Luke Pulverenti
2013-09-06 16:25:03 -04:00
parent e4dfbb6f55
commit 0d59941539
5 changed files with 115 additions and 13 deletions

View File

@@ -496,6 +496,20 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
});
};
/**
* Gets a list of network devices from the server
*/
self.getNetworkDevices = function () {
var url = self.getUrl("Environment/NetworkDevices");
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
/**
* Cancels a package installation
*/