aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/js
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2018-05-17 15:05:51 +0200
committerJohannes Zellner <johannes@cloudron.io>2018-05-17 15:05:51 +0200
commitf8693af1f69c91e93ff1b48614df92a84da78e8d (patch)
tree5ed4e48036202da08d727e643bf1c4e44b972c7e /frontend/js
parent6ee80c949ae1ac2bb5177e4ec22eb81d3f790746 (diff)
downloadSurfer-f8693af1f69c91e93ff1b48614df92a84da78e8d.tar.gz
Surfer-f8693af1f69c91e93ff1b48614df92a84da78e8d.tar.zst
Surfer-f8693af1f69c91e93ff1b48614df92a84da78e8d.zip
Add button to navigate back
Diffstat (limited to 'frontend/js')
-rw-r--r--frontend/js/app.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js
index 1500457..57b831e 100644
--- a/frontend/js/app.js
+++ b/frontend/js/app.js
@@ -124,10 +124,6 @@ function open(row, event, column) {
124 window.open(encode(path)); 124 window.open(encode(path));
125} 125}
126 126
127function up() {
128 window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/'));
129}
130
131function uploadFiles(files) { 127function uploadFiles(files) {
132 if (!files || !files.length) return; 128 if (!files || !files.length) return;
133 129
@@ -328,7 +324,9 @@ var app = new Vue({
328 return filesize(cellValue); 324 return filesize(cellValue);
329 }, 325 },
330 loadDirectory: loadDirectory, 326 loadDirectory: loadDirectory,
331 up: up, 327 onUp: function () {
328 window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/'));
329 },
332 open: open, 330 open: open,
333 drop: drop, 331 drop: drop,
334 dragOver: dragOver 332 dragOver: dragOver