diff options
Diffstat (limited to 'app/js/app.js')
-rw-r--r-- | app/js/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/js/app.js b/app/js/app.js index f207de6..b26a2a6 100644 --- a/app/js/app.js +++ b/app/js/app.js | |||
@@ -105,18 +105,18 @@ function loadDirectory(filePath) { | |||
105 | } | 105 | } |
106 | 106 | ||
107 | function open(entry) { | 107 | function open(entry) { |
108 | var path = encode(sanitize(app.path + '/' + entry.filePath)); | 108 | var path = sanitize(app.path + '/' + entry.filePath); |
109 | 109 | ||
110 | if (entry.isDirectory) { | 110 | if (entry.isDirectory) { |
111 | window.location.hash = path; | 111 | window.location.hash = path; |
112 | return; | 112 | return; |
113 | } | 113 | } |
114 | 114 | ||
115 | window.open(path); | 115 | window.open(encode(path)); |
116 | } | 116 | } |
117 | 117 | ||
118 | function up() { | 118 | function up() { |
119 | window.location.hash = encode(sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/'))); | 119 | window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/')); |
120 | } | 120 | } |
121 | 121 | ||
122 | function upload() { | 122 | function upload() { |