diff --git a/ApiClient.js b/ApiClient.js index 26aad2efbf..29bfb1068f 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -496,20 +496,6 @@ 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 */ diff --git a/dashboard-ui/scripts/directorybrowser.js b/dashboard-ui/scripts/directorybrowser.js index 780e0c2c0b..5715c62013 100644 --- a/dashboard-ui/scripts/directorybrowser.js +++ b/dashboard-ui/scripts/directorybrowser.js @@ -6,10 +6,7 @@ var promise; - if (path === "Network") { - promise = ApiClient.getNetworkDevices(); - } - else if (path) { + if (path) { promise = ApiClient.getDirectoryContents(path, { includeDirectories: true }); } else { promise = ApiClient.getDrives(); @@ -35,9 +32,9 @@ if (parentPath.endsWith(':')) { parentPath += "\\"; } - + if (parentPath == '\\') { - parentPath = "Network"; + parentPath = ""; } html += '