From f8693af1f69c91e93ff1b48614df92a84da78e8d Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 17 May 2018 15:05:51 +0200 Subject: Add button to navigate back --- frontend/js/app.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'frontend/js') 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 -- cgit v1.2.3