From f8693af1f69c91e93ff1b48614df92a84da78e8d Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 17 May 2018 15:05:51 +0200 Subject: [PATCH] Add button to navigate back --- frontend/index.html | 3 +++ frontend/js/app.js | 8 +++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index f7c5ab1..19fc217 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -40,6 +40,9 @@
Surfer
+
+ +
Path / 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) { window.open(encode(path)); } -function up() { - window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/')); -} - function uploadFiles(files) { if (!files || !files.length) return; @@ -328,7 +324,9 @@ var app = new Vue({ return filesize(cellValue); }, loadDirectory: loadDirectory, - up: up, + onUp: function () { + window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/')); + }, open: open, drop: drop, dragOver: dragOver -- 2.41.0