aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/index.html3
-rw-r--r--frontend/js/app.js8
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 @@
40 <div style="padding: 7px;"> 40 <div style="padding: 7px;">
41 <span>Surfer</span> 41 <span>Surfer</span>
42 </div> 42 </div>
43 <div>
44 <el-button type="primary" size="small" icon="el-icon-arrow-left" v-show="pathParts.slice(-1).length" @click="onUp"></el-button>
45 </div>
43 <div style="flex-grow: 2; padding: 0 7px;" v-show="session.valid"> 46 <div style="flex-grow: 2; padding: 0 7px;" v-show="session.valid">
44 <el-breadcrumb separator-class="el-icon-arrow-right"> 47 <el-breadcrumb separator-class="el-icon-arrow-right">
45 <el-breadcrumb-item><a href="#/">Path /</a></el-breadcrumb-item> 48 <el-breadcrumb-item><a href="#/">Path /</a></el-breadcrumb-item>
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