X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git;a=blobdiff_plain;f=frontend%2Fjs%2Fapp.js;h=57b831eeca698423a3e25bafcde72900fdf0d87c;hp=1500457e0a3993c402a18860ac47a7ce2d69acbc;hb=f8693af1f69c91e93ff1b48614df92a84da78e8d;hpb=6ee80c949ae1ac2bb5177e4ec22eb81d3f790746 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