diff options
author | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 15:22:47 +0100 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 15:22:47 +0100 |
commit | ee9d1ada964d9e9ce7d9c020ab105aa7ded8147e (patch) | |
tree | b0c76cdba1632e0cd787a6fd4109aab5f1025e38 /app/js/app.js | |
parent | d3312ed1aace3c72570f60be56d846fb9ecbc584 (diff) | |
download | Surfer-ee9d1ada964d9e9ce7d9c020ab105aa7ded8147e.tar.gz Surfer-ee9d1ada964d9e9ce7d9c020ab105aa7ded8147e.tar.zst Surfer-ee9d1ada964d9e9ce7d9c020ab105aa7ded8147e.zip |
Add upload button
Diffstat (limited to 'app/js/app.js')
-rw-r--r-- | app/js/app.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/js/app.js b/app/js/app.js index 10a489c..b71a7ed 100644 --- a/app/js/app.js +++ b/app/js/app.js | |||
@@ -55,7 +55,6 @@ function loadDirectory(filePath) { | |||
55 | app.entries = result.body.entries; | 55 | app.entries = result.body.entries; |
56 | app.path = filePath; | 56 | app.path = filePath; |
57 | app.pathParts = filePath.split('/').filter(function (e) { return !!e; }); | 57 | app.pathParts = filePath.split('/').filter(function (e) { return !!e; }); |
58 | console.log(app.pathParts) | ||
59 | }); | 58 | }); |
60 | } | 59 | } |
61 | 60 | ||
@@ -64,7 +63,7 @@ function open(entry) { | |||
64 | 63 | ||
65 | if (entry.isDirectory) return loadDirectory(path); | 64 | if (entry.isDirectory) return loadDirectory(path); |
66 | 65 | ||
67 | window.location.href = window.location.origin + path; | 66 | window.open(path); |
68 | } | 67 | } |
69 | 68 | ||
70 | function up() { | 69 | function up() { |