aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2016-03-01 15:22:47 +0100
committerJohannes Zellner <johannes@nebulon.de>2016-03-01 15:22:47 +0100
commitee9d1ada964d9e9ce7d9c020ab105aa7ded8147e (patch)
treeb0c76cdba1632e0cd787a6fd4109aab5f1025e38
parentd3312ed1aace3c72570f60be56d846fb9ecbc584 (diff)
downloadSurfer-ee9d1ada964d9e9ce7d9c020ab105aa7ded8147e.tar.gz
Surfer-ee9d1ada964d9e9ce7d9c020ab105aa7ded8147e.tar.zst
Surfer-ee9d1ada964d9e9ce7d9c020ab105aa7ded8147e.zip
Add upload button
-rw-r--r--app/index.html7
-rw-r--r--app/js/app.js3
2 files changed, 7 insertions, 3 deletions
diff --git a/app/index.html b/app/index.html
index 773b5cf..78f5a94 100644
--- a/app/index.html
+++ b/app/index.html
@@ -25,7 +25,6 @@
25 <!-- Collect the nav links, forms, and other content for toggling --> 25 <!-- Collect the nav links, forms, and other content for toggling -->
26 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> 26 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
27 <ul class="nav navbar-nav navbar-right"> 27 <ul class="nav navbar-nav navbar-right">
28 <li v-show="session.valid"><a href="#">Upload</a></li>
29 <li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li> 28 <li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li>
30 </ul> 29 </ul>
31 </div> 30 </div>
@@ -63,6 +62,12 @@
63 <div class="container" v-show="session.valid && !busy" v-cloak> 62 <div class="container" v-show="session.valid && !busy" v-cloak>
64 <div class="row"> 63 <div class="row">
65 <div class="col-lg-12"> 64 <div class="col-lg-12">
65 <center>
66 <button class="btn btn-primary">Upload</button>
67 </center>
68 <br/>
69 </div>
70 <div class="col-lg-12">
66 <ol class="breadcrumb"> 71 <ol class="breadcrumb">
67 <li><i class="fa fa-home"></i>&nbsp;</li> 72 <li><i class="fa fa-home"></i>&nbsp;</li>
68 <li v-for="part in pathParts"> 73 <li v-for="part in pathParts">
diff --git a/app/js/app.js b/app/js/app.js
index 10a489c..b71a7ed 100644
--- a/app/js/app.js
+++ b/app/js/app.js
@@ -55,7 +55,6 @@ function loadDirectory(filePath) {
55 app.entries = result.body.entries; 55 app.entries = result.body.entries;
56 app.path = filePath; 56 app.path = filePath;
57 app.pathParts = filePath.split('/').filter(function (e) { return !!e; }); 57 app.pathParts = filePath.split('/').filter(function (e) { return !!e; });
58 console.log(app.pathParts)
59 }); 58 });
60} 59}
61 60
@@ -64,7 +63,7 @@ function open(entry) {
64 63
65 if (entry.isDirectory) return loadDirectory(path); 64 if (entry.isDirectory) return loadDirectory(path);
66 65
67 window.location.href = window.location.origin + path; 66 window.open(path);
68} 67}
69 68
70function up() { 69function up() {