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 += '
  • ..
  • '; @@ -50,10 +47,6 @@ html += '
  • ' + folder.Name + '
  • '; } - if (!path) { - html += '
  • Network
  • '; - } - $('#ulDirectoryPickerList', page).html(html).listview('refresh'); Dashboard.hideLoadingMsg(); @@ -91,6 +84,7 @@ html += '
    '; html += ''; html += ''; + html += '
    Network paths can be entered manually, e.g. \\\\my-server
    '; html += '
    '; html += '
    '; diff --git a/packages.config b/packages.config index 505dcab952..49180aa52e 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file