From 03598341b17f5d543c21f06d88830839500b1245 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 8 Sep 2013 09:38:52 -0400 Subject: [PATCH] added refresh button in directory picker --- dashboard-ui/scripts/directorybrowser.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/directorybrowser.js b/dashboard-ui/scripts/directorybrowser.js index d08f2e6555..017590352e 100644 --- a/dashboard-ui/scripts/directorybrowser.js +++ b/dashboard-ui/scripts/directorybrowser.js @@ -97,12 +97,13 @@ html += '
'; html += ''; html += ''; + html += ''; html += '
'; html += '
'; html += ''; - html += '
Network paths can be entered manually in the event the Network button fails to locate your devices. For example, \\\\my-server.
'; + html += '
Network paths can be entered manually in the event the Network button fails to locate your devices. For example, \\\\my-server or \\\\192.168.1.101.
'; html += '
'; @@ -133,6 +134,12 @@ refreshDirectoryBrowser(page, path); + }).on("click", ".btnRefreshDirectories", function () { + + var path = $('#txtDirectoryPickerPath', page).val(); + + refreshDirectoryBrowser(page, path); + }).on("change", "#txtDirectoryPickerPath", function () { refreshDirectoryBrowser(page, this.value);